Skip to content

Commit

Permalink
Increase session duration (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
Redm4x authored Jan 17, 2024
1 parent bb81e50 commit 6008295
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ export function CustomChainProvider({ children }: Props) {
chains={[akash, akashSandbox, akashTestnet]}
assetLists={[akashAssetList, akashSandboxAssetList, akashTestnetAssetList]}
wallets={[...keplr, ...leap, ...cosmostation]}
sessionOptions={{
duration: 31_556_926_000, // 1 year
callback: () => {
console.log("session expired");
window.localStorage.removeItem("cosmos-kit@2:core//current-wallet");
window.location.reload();
}
}}
walletConnectOptions={{
signClient: {
projectId: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID
Expand Down

0 comments on commit 6008295

Please sign in to comment.