Skip to content

feat: Auth: Add redirect to requested page during auth flow #5

@ProgrammingByPermutation

Description

Currently the authGuardGuard from the middleware redirects protected pages back to the index screen to force users to re-auth with google's OpenId. The problem is that means no matter what you end up on the home screen.

It would be nice if, in a situation where you're redirected so you can re-auth, the end of the auth flow would put you back on the page you were going to instead of just dumping you in home.

The authGuardGuard already puts the "returnUrl" as a query parameter to home screen. The home screen would just need to pass this as additional metadata to the google OpenId in the html file, pass it again on the redirect in the nullinside-api project for the auth endpoint google is using, and then respect it on the google landing page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions