Skip to content

Example: Adding Documentation for Fully Custom 'SignUp' and 'Confirmation Code' Pages #36

@spencerdearman

Description

@spencerdearman
Screenshot 2023-08-28 at 10 38 38 PM

Similar to the template above, I think it would be helpful to provide documentation for how to create and manage fields within a fully custom SignUp and Confirmation Code Page.

Ex.

  • If I wanted to create a Custom SignUp page that contains fields such as 'Username', 'Password', and 'ConfirmPassword', how would those fields be accessible from the state.
  • In addition, for a page such as the Confirmation Code page (the page after an email is sent with the code), how could you access the proper field?
  • Finally, if I wanted to switch to my Custom SignUpPage, the documentation for how to connect them together. I think that I am supposed to use state.move(to: <#T##AuthenticatorInitialStep#>) however it is unclear. With the example below, it is unclear how I would be able to move from one of my custom views into the other while still using Authenticator.
            Authenticator(
                signInContent: { state in
                    NewSignIn(state: state)
                }, signUpContent: { state in
                    NewSignUp(state: state)
                }
            ) { _ in

Thank you in advance!

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentationquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions