I have an application working with Flutter using the Auth0 code provided.
web3auth_flutter: ^3.1.6
I have followed this post below and created an API application in Auth0 however the oAuthAccessToken that is returned is only 24 hours (bottom value browser flows) not top value.
I don’t want the user to keep having to logout and login to the app so want a longer period than 24 hours
Since, you are using Flutter SDK, you can use the sessionTime parameter in Web3AuthOptions to extend the session.
await Web3AuthFlutter.init(
Web3AuthOptions(
clientId: 'Your Client id',
network: Network.sapphire_mainnet,
redirectUrl: redirectUrl,
loginConfig: loginConfig,
// 259200 allows user to stay authenticated for 3 days with Web3Auth.
// Default is 86400, which is 1 day.
sessionTime: 259200,
),
);