I want to create my own login form.
-
I want to create my own login form, how do I do so?
-
If you have your own login form, you'll either be using the Login API or the OAuth Password grant. You will use one or the other, not both, each option will provide you roughly the same functionality. Totally up to you, the Login API is our own creation, the Password grant is defined by the OAuth RFC.
High level:
- Collect email and password
- Call the Login API or the Token endpoint using the Password grant
- Collect the JSON response which will contain an access token (JWT)
Login API docs: https://fusionauth.io/docs/v1/tech/apis/login#authenticate-a-user
Password Grant: https://fusionauth.io/docs/v1/tech/oauth/endpoints#resource-owner-password-credentials-grant-request
https://fusionauth.io/docs/v1/tech/oauth/#example-resource-owner-password-credentials-grant -