-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2af4f10
commit 9d867ee
Showing
9 changed files
with
95 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,7 +130,7 @@ active session and clear it from the session manager: | |
|
||
```swift | ||
guard let refreshJwt = Descope.sessionManager.session?.refreshJwt else { return } | ||
try await Descope.auth.logout(refreshJwt: refreshJwt) | ||
try await Descope.auth.revokeSessions(.currentSession, refreshJwt: refreshJwt) | ||
Descope.sessionManager.clearSession() | ||
``` | ||
|
||
|
@@ -360,7 +360,7 @@ you configured in the Descope console earlier. | |
```swift | ||
do { | ||
showLoading(true) | ||
let authResponse = try await Descope.passkey.native(provider: .apple, options: []) | ||
let authResponse = try await Descope.passkey.signUpOrIn(loginId: "[email protected]", options: []) | ||
let session = DescopeSession(from: authResponse) | ||
Descope.sessionManager.manageSession(session) | ||
showHomeScreen() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters