Save offline access
The server decides whether offline access is allowed and how long it lasts. The SDK handles the challenge, signature checks, and protected local storage. Your app may call saveOfflineAccess after a successful online sign-in to ask the SDK to save the permit. After that, the SDK checks the saved permit when a network request cannot reach AuthlyX.
You do not create or sign the permit yourself. If the dashboard has not enabled offline access, the server will not issue one. A saved permit cannot extend its own expiry or override a ban, pause, or revoked session once the app can reach the server again.
SDK version: V3 Beta. These examples use the current downloads. V1 and V2 use different APIs; choose them in the version selector.
Each example assumes app is the AuthlyX client you created in Connect your app. When a method takes a callback, AuthlyX calls it after the reply arrives. For C++ futures, Python or JavaScript await, Java futures, Go errors and Rust ?, read Results.
C#
C++
Python
JavaScript / Node.js
TypeScript
Java
Go
Rust
If the app is offline and the permit is missing, expired, or fails verification, the SDK cannot confirm access. Keep protected screens locked until the app can check with AuthlyX again. See the Offline Access guide for the dashboard policy and security limits.

