ZeonZ
Convex Community2mo ago
1 reply
Zeon

Native auth.config.ts session behavior

🔑Auth
Hey!
I'm using native Convex auth with Apple Sign In on iOS (NOT @convex-dev/auth). My setup:

// auth.config.ts
export default {
providers: [
{
domain: "https://appleid.apple.com",
applicationID: "com.myapp.bundle",
},
],
};

iOS app caches Apple's identity token in keychain, calls client.loginFromCache() on launch.

Apple's JWT expires after ~24 hours. I'm worried users will get logged out if they don't open the app daily.

Questions:
1. Does Convex create its own session after validating the Apple JWT, or does it need a valid (non-expired) JWT on every reconnect?
2. If users get logged out after 24h, is migrating to @convex-dev/auth the only way to get longer sessions?



Thanks!
Was this page helpful?