[GH-ISSUE #49] Implement login and token functionality to frontend #40

Closed
opened 2026-02-27 19:16:38 +03:00 by kerem · 1 comment
Owner

Originally created by @EddieTheCubeHead on GitHub (Jan 29, 2024).
Original GitHub issue: https://github.com/EddieTheCubeHead/Stagnum/issues/49

If client doesn't have a token, home page (all routes? If possible) should reroute to login page.

Once client gets token from login page, all requests should include the token in header "token"

Acceptance criteria: described functionality exists and is tested accoding to front end team standards. Test set passes

Originally created by @EddieTheCubeHead on GitHub (Jan 29, 2024). Original GitHub issue: https://github.com/EddieTheCubeHead/Stagnum/issues/49 If client doesn't have a token, home page (all routes? If possible) should reroute to login page. Once client gets token from login page, all requests should include the token in header "token" Acceptance criteria: described functionality exists and is tested accoding to front end team standards. Test set passes
kerem closed this issue 2026-02-27 19:16:38 +03:00
Author
Owner

@tuomasmustakallio commented on GitHub (Jan 30, 2024):

https://jasonwatmore.com/post/2021/08/30/next-js-redirect-to-login-page-if-unauthenticated

This should be a good start for this ticket for the rerouting. We don't need to have the authentication check from the server at the authCeck-function but a simple token != null or something like that for start which then runs on router events.

<!-- gh-comment-id:1916822278 --> @tuomasmustakallio commented on GitHub (Jan 30, 2024): https://jasonwatmore.com/post/2021/08/30/next-js-redirect-to-login-page-if-unauthenticated This should be a good start for this ticket for the rerouting. We don't need to have the authentication check from the server at the authCeck-function but a simple token != null or something like that for start which then runs on router events.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Stagnum#40
No description provided.