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(auth): introduce sign-in guard #995

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Conversation

aofei
Copy link
Member

@aofei aofei commented Oct 18, 2024

  • Add useEnsureSignedIn to prompt users to sign in before executing protected actions.
  • Add similar protection for specific routes using navigation guards.

Fixes #974

spx-gui/src/pages/editor/index.vue Outdated Show resolved Hide resolved
spx-gui/src/utils/exception.ts Outdated Show resolved Hide resolved
- Add `useEnsureSignedIn` to prompt users to sign in before executing
  protected actions.
- Add similar protection for specific routes using navigation guards.

Fixes goplus#974

Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
@qiniu-ci
Copy link

This PR has been deployed to the preview environment. You can explore it using the preview URL.

Warning

Please note that deployments in the preview environment are temporary and will be automatically cleaned up after a certain period. Make sure to explore it before it is removed. For any questions, contact the Go+ Builder team.

@aofei aofei merged commit 805a472 into goplus:dev Oct 18, 2024
4 checks passed
@aofei aofei deleted the sign-in-guard branch October 18, 2024 03:35
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.

Community prompt to sign in
3 participants