auth
This commit is contained in:
parent
79595bc1da
commit
9e25357a56
@ -53,7 +53,7 @@ public final class NetworkUser: NetworkUserProtocol {
|
||||
}
|
||||
|
||||
public func getIdToken(token: String) async throws -> String {
|
||||
let data = try await baseUrl.execute(path: URLS.getIdToken, method: .get, headers: Headers.headerWithToken(token: token), parameters: ["":""])
|
||||
let data = try await baseUrl.execute(path: URLS.getIdToken, method: .get, headers: Headers.headerWithToken(token: token), parameters: [:])
|
||||
let tokenID = try JSONDecoder().decode(ServerResponseIdToken.self, from: data)
|
||||
return tokenID.items.id
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user