Skip to content

Commit

Permalink
Update FronteggAuth.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
frontegg-david authored Aug 30, 2024
1 parent f6cb72b commit 989f4d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/FronteggSwift/FronteggAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public class FronteggAuth: ObservableObject {
let accessToken = self.accessToken ?? ""

DispatchQueue.main.sync {
self.refreshingToken=false
self.refreshingToken=true
}
if let data = await self.api.refreshToken(accessToken: accessToken, refreshToken: refreshToken) {
await self.setCredentials(accessToken: data.access_token, refreshToken: data.refresh_token)
Expand Down

0 comments on commit 989f4d3

Please sign in to comment.