Skip to content

fix: add guard to auth routes from authorized user#375

Merged
maciejkrol18 merged 1 commit into
mainfrom
fix/371-block-auth-route-for-logged-users
Jul 3, 2026
Merged

fix: add guard to auth routes from authorized user#375
maciejkrol18 merged 1 commit into
mainfrom
fix/371-block-auth-route-for-logged-users

Conversation

@ShadowCatP

Copy link
Copy Markdown
Member

No description provided.

@ShadowCatP
ShadowCatP requested a review from maciejkrol18 June 12, 2026 22:07
@ShadowCatP ShadowCatP self-assigned this Jun 12, 2026
@ShadowCatP ShadowCatP linked an issue Jun 12, 2026 that may be closed by this pull request

@maciejkrol18 maciejkrol18 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

W teorii odradza się robienia auth checków w layoutach (https://nextjs.org/docs/app/guides/authentication#layouts-and-auth-checks) ale to jest w sumie jedynie session check który nie jest od blokowania chronionych stron więc dla mnie może być i tak

@maciejkrol18 maciejkrol18 changed the title fix: add guard to auth routes fro authorized user fix: add guard to auth routes from authorized user Jul 3, 2026
@maciejkrol18
maciejkrol18 merged commit c6cf7a5 into main Jul 3, 2026
4 checks passed
@maciejkrol18
maciejkrol18 deleted the fix/371-block-auth-route-for-logged-users branch July 3, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zablokować ścieżki pod authem dla zalogowanych

2 participants