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

#25 Login state is persisted on refresh #24

Merged
merged 3 commits into from
Jan 16, 2024
Merged

#25 Login state is persisted on refresh #24

merged 3 commits into from
Jan 16, 2024

Conversation

austininseoul
Copy link
Collaborator

No description provided.

@jmformenti jmformenti changed the title login state is persisted on refresh #25 Login state is persisted on refresh Dec 5, 2023
Copy link
Contributor

@jmformenti jmformenti left a comment

Choose a reason for hiding this comment

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

Apart from these changes we should take into account the following points:

  1. Delete the cookie when logging out.
  2. In Europe, when cookies are used on a website, permission must be requested from the user, I don't know in other countries. But for this point we can open a new track later.

frontend/layouts/default.vue Outdated Show resolved Hide resolved
frontend/service/oauth.service.js Outdated Show resolved Hide resolved
frontend/service/wikibase.service.js Outdated Show resolved Hide resolved
@austininseoul
Copy link
Collaborator Author

updated in PR

frontend/service/oauth.service.js Outdated Show resolved Hide resolved
const accessToken = decoded.accessToken
this.$store.commit('auth/login', { username, accessToken })
} catch (err) {
// error logic here
Copy link
Contributor

Choose a reason for hiding this comment

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

What types of errors have you detected here? maybe could be interesting to put a console.error ?

@jmformenti jmformenti merged commit 7251f13 into master Jan 16, 2024
@jmformenti jmformenti deleted the oauth-fix branch March 10, 2024 16:15
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.

None yet

2 participants