Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expiresIn not exist in react-auth-kit ? #1718

Open
codingwithashu opened this issue May 6, 2024 · 2 comments
Open

expiresIn not exist in react-auth-kit ? #1718

codingwithashu opened this issue May 6, 2024 · 2 comments
Labels
question Further information is requested

Comments

@codingwithashu
Copy link

expiresIn not exist in react-auth-kit ?

@codingwithashu codingwithashu added the question Further information is requested label May 6, 2024
@darkmatter18
Copy link
Member

Please elaborate.

@codingwithashu
Copy link
Author

earlier version : signIn({
token: logidata!.access_token,
expiresIn: 60,
tokenType: "Bearer",
authState: authsate,
});

  **in latest version** : signIn({
        auth: {
            token: 'ey....mA',
            type: 'Bearer'
        },
        refresh: 'ey....mA'
        userState: {
            name: 'React User',
            uid: 123456
        }
    })
    
    there is no "expiresIn" , how to check if token expire then need to navigate to login page ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants