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

feat(app/auth): logout user when tokens expire #182

Conversation

KacperKoza343
Copy link
Collaborator

Description

Summary of changes

How test the changes

Related issues

Keywords for linking issues

const { mutate: getAccessTokenMutation } = useGetAccessTokenMutation();

useEffect(() => {
if (web3Auth.user?.exp && web3Auth.user.exp < Date.now() / 1000) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create variable

@MicDebBlocky MicDebBlocky merged commit 2d961dc into feature/human-app-frontend-2nd-milestone Jul 4, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants