Skip to content

Commit 8773947

Browse files
committed
chore: UserInfo request falls back to use API.accessToken if token of IDKit is not available
1 parent 48aa9db commit 8773947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PACECloudSDK/IDKit/Requests/IDKit+HTTPRequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Foundation
99

1010
extension IDKit {
1111
func performHTTPRequest<T: Decodable>(for url: URL, type: T.Type, currentNumberOfRetries: Int = 0, completion: @escaping (Result<T, IDKitError>) -> Void) {
12-
guard let accessToken = IDKit.latestAccessToken() else {
12+
guard let accessToken = IDKit.latestAccessToken() ?? API.accessToken else {
1313
completion(.failure(.invalidSession))
1414
return
1515
}

0 commit comments

Comments
 (0)