Skip to content

Feedback for “Sign In and Sign Out” #12781

Closed
@WarrenHullStunts

Description

@WarrenHullStunts

I had a lot of difficulty getting the redirect to work on sign in. I melded the code from both the credentials and the redirect segment into my login page thinking that this would work:

Image

I was receiving the info on the backend, validating the password, and returning a user. However, it was not respecting the redirectTo option that I was passing in. It took me a long time to realize that I could put the "redirectTo" path inside of the formData, and that the signIn function would respect that.

I may have been too tired to read TS types effectively at that moment, but I think it would be helpful to add "how to redirect with credentials" mention to the this section for the future (unless I totally missed it being there already).

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalid reproductionThe issue did not have a detectable valid reproduction URL

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions