How to renew/ refresh a session when it expires? #941
-
I have the following setup to connect my app with zksync-sso. const connector = zksyncSsoConnector({
metadata: {
icon: "",
},
authServerUrl: config.public.authServerUrl,
session: {
expiry: "5m", // small duration for testing purposes
contractCalls: [
callPolicy({
address: config.public.contracts.contractAddress as Hash,
abi: myAbi as Abi,
functionName: "setMessage",
}),
],
},
}); When the session is valid, the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Unfortunately, at the moment there is no way to renew the session. I think the team is working on that now. Right now I would suggest just making the expiry time longer and the limits higher, until we have a better way to refresh the session. |
Beta Was this translation helpful? Give feedback.
Unfortunately, at the moment there is no way to renew the session. I think the team is working on that now.
The only way right now would be to re-login, approving a new session.
Right now I would suggest just making the expiry time longer and the limits higher, until we have a better way to refresh the session.