-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ Email to [email protected]: | |
Return Stage | ||
|
||
```bash | ||
curl -X POST -d "token=815381" localhost:8000/callback/auth/ | ||
curl -X POST -d "[email protected]&token=815381" localhost:8000/callback/auth/ | ||
|
||
> HTTP/1.0 200 OK | ||
> {"token":"76be2d9ecfaf5fa4226d722bzdd8a4fff207ed0e”} | ||
|
@@ -145,8 +145,7 @@ PASSWORDLESS_AUTH = { | |
} | ||
``` | ||
You’ll also need to set up an SMTP server to send emails (`See Django | ||
Docs <https://docs.djangoproject.com/en/1.10/topics/email/>`__), but for | ||
You’ll also need to set up an SMTP server to send emails but for | ||
development you can set up a dummy development smtp server to test | ||
emails. Sent emails will print to the console. `Read more | ||
here. <https://docs.djangoproject.com/en/3.0/topics/email/#console-backend>`__ | ||
|
@@ -232,10 +231,10 @@ DEFAULTS = { | |
'PASSWORDLESS_AUTH_TYPES': ['EMAIL'], | ||
# URL Prefix for Authentication Endpoints | ||
'PASSWORDLESS_AUTH_PREFIX': 'auth', | ||
'PASSWORDLESS_AUTH_PREFIX': 'auth/', | ||
# URL Prefix for Verification Endpoints | ||
'PASSWORDLESS_VERIFY_PREFIX': 'auth', | ||
'PASSWORDLESS_VERIFY_PREFIX': 'auth/verify/', | ||
# Amount of time that tokens last, in seconds | ||
'PASSWORDLESS_TOKEN_EXPIRE_TIME': 15 * 60, | ||
|