# Email Password

## A popup upon Email Password / Email

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><img src="https://3244648189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOu6aN3RW264zdJsOQMJ2%2Fuploads%2FoZIEymtGv2PScxRL29n0%2FScreenshot_2021-07-02_at_16.12.01.png?alt=media&#x26;token=a67bc39d-350c-4408-a314-b7952313cd6f" alt=""></td><td></td><td></td></tr><tr><td><img src="https://3244648189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOu6aN3RW264zdJsOQMJ2%2Fuploads%2Fk27w4nMuxUu9uxZVWLIK%2FScreenshot_2021-07-05_at_15.29.56.png?alt=media&#x26;token=4d31806f-7bef-4edc-967c-7698e1d9905d" alt=""></td><td></td><td></td></tr></tbody></table>

## Email Verification

#### When used ?

* When signup is clicked by a user, an email is sent to the email address the user enters for authentication.&#x20;

<figure><img src="https://3244648189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOu6aN3RW264zdJsOQMJ2%2Fuploads%2FPMbd4hCbHTqkc1PHhYh4%2FScreenshot_2021-07-05_at_15.55.18.png?alt=media&#x26;token=2c2485d8-5e2f-4a66-ab20-2c8e14f72ece" alt=""><figcaption></figcaption></figure>

Please refer to [getting-started](https://docs.startrail.io/startrail-sdk-js/getting-started "mention") for more details of how to set callbackUrl

{% hint style="info" %}
Redirect Url that is generated at user's click contains the following query parameters.

`https://redirectUrl.com?disable_signup=true&auth_provider=email_password`

You can get the query to identify the status that user is returned from signup process.
{% endhint %}

### UI Samples with combination of parameters

<table data-view="cards"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><img src="https://3244648189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOu6aN3RW264zdJsOQMJ2%2Fuploads%2FKd7uhglQc723MIf6SdS0%2FScreenshot%202021-08-13%20at%2018.31.10.png?alt=media&#x26;token=99ed3eb5-2b33-497c-b20f-44b0857466d3" alt=""></td><td><code>{loginProvider: ['email_password']}</code></td><td></td></tr><tr><td><img src="https://3244648189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOu6aN3RW264zdJsOQMJ2%2Fuploads%2F8V9lFmZZ5QmKGvpxannY%2FScreenshot%202021-08-13%20at%2018.32.02.png?alt=media&#x26;token=24e82ed3-d6d5-4ef4-bf08-73d8d4b3b9a0" alt=""></td><td><code>{loginProvider: ['email_password'], authAction: { login: false, signup: true }}</code></td><td></td></tr><tr><td><img src="https://3244648189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOu6aN3RW264zdJsOQMJ2%2Fuploads%2FnxdJfAkTzuHbnVOHUhBT%2FScreenshot%202021-08-13%20at%2018.31.41.png?alt=media&#x26;token=ab9a0d7b-6aa0-4ac4-9aab-16c167b21e5f" alt=""></td><td><code>{loginProvider: ['email_password'] authAction: { login: true, signup: false }}</code></td><td></td></tr></tbody></table>
