Merge pull request #13 from LePips/main

This commit is contained in:
Ethan Pippin 2022-08-19 21:42:07 -06:00 committed by GitHub
commit 4ecb2d4673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,7 +232,7 @@ public extension JellyfinClient {
/// - Throws: `ClientError.noAccessTokenInResponse` if no access token was supplied in a successful authentication response
@discardableResult
func signIn(username: String, password: String) async throws -> AuthenticationResult {
let authenticateUserRequest = Paths.authenticateUserByName(.init(password: password, pw: nil, username: "epippin"))
let authenticateUserRequest = Paths.authenticateUserByName(.init(password: password, pw: nil, username: username))
let response = try await send(authenticateUserRequest).value
if let accessToken = response.accessToken {