@@ -384,14 +384,14 @@ The request must include all three fields.
384
384
- ` timeToLive ` : (OPTIONAL) Number of seconds the magic link token should be valid for. If not set, the default value is 1 hour.
385
385
386
386
``` http request
387
- POST https://v4.passwwordless .dev/magic-links/send HTTP/1.1
387
+ POST https://v4.passwordless .dev/magic-links/send HTTP/1.1
388
388
ApiSecret: myapplication:secret:11f8dd7733744f2596f2a28544b5fbc4
389
389
Content-Type: application/json
390
390
391
391
{
392
392
"emailAddress": "[email protected] ",
393
- "urlTemplate": "https://www.myapp.com?token=$TOKEN"
394
- "userId": "c8a32e5b-46d3-4808-ae10-16d3e26ff6f9"
393
+ "urlTemplate": "https://www.myapp.com?token=$TOKEN",
394
+ "userId": "c8a32e5b-46d3-4808-ae10-16d3e26ff6f9",
395
395
"timeToLive": 3600
396
396
}
397
397
```
@@ -409,12 +409,12 @@ If Magic Links has not been enabled, the `/magic-links/send` endpoint will retur
409
409
` GET ` requests made to the ` /auth-configs/list ` endpoint will return a ` .json ` object containing a list of authentication configurations that can be used by the application. It can be filtered to one specific configuration by passing the purpose name as a query parameter.
410
410
411
411
``` http request
412
- GET https://v4.passwwordless .dev/auth-configs/list HTTP/1.1
412
+ GET https://v4.passwordless .dev/auth-configs/list HTTP/1.1
413
413
ApiSecret: myapplication:secret:11f8dd7733744f2596f2a28544b5fbc4
414
414
```
415
415
416
416
``` http request
417
- GET https://v4.passwwordless .dev/auth-configs/list?purpose=step-up HTTP/1.1
417
+ GET https://v4.passwordless .dev/auth-configs/list?purpose=step-up HTTP/1.1
418
418
ApiSecret: myapplication:secret:11f8dd7733744f2596f2a28544b5fbc4
419
419
```
420
420
@@ -463,14 +463,14 @@ If successful, the `/auth-configs/list` endpoint will return a `.json` object co
463
463
- ` performedBy ` : user identifier to track changes to the configuration
464
464
465
465
``` http request
466
- GET https://v4.passwwordless .dev/auth-configs/add HTTP/1.1
466
+ GET https://v4.passwordless .dev/auth-configs/add HTTP/1.1
467
467
ApiSecret: myapplication:secret:11f8dd7733744f2596f2a28544b5fbc4
468
468
Content-Type: application/json
469
469
470
470
{
471
471
"purpose": "access-secrets-purpose", // identifying string give context to the specific authentication
472
472
"timeToLive": "00:03:00", // timespan the token is valid for
473
- "userVerificationRequirement": "preferred" // requirement for if the user has to verify they're allowed to use an authenticator
473
+ "userVerificationRequirement": "preferred", // requirement for if the user has to verify they're allowed to use an authenticator
474
474
"performedBy": "user_123" // user identifier to track changes to the configuration
475
475
}
476
476
```
@@ -492,14 +492,14 @@ If unsuccessful, the `/auth-configs/add` endpoint will return an HTTP 400 (Bad R
492
492
- ` performedBy ` : user identifier to track changes to the configuration
493
493
494
494
``` http request
495
- GET https://v4.passwwordless .dev/auth-configs HTTP/1.1
495
+ GET https://v4.passwordless .dev/auth-configs HTTP/1.1
496
496
ApiSecret: myapplication:secret:11f8dd7733744f2596f2a28544b5fbc4
497
497
Content-Type: application/json
498
498
499
499
{
500
500
"purpose": "access-secrets-purpose", // existing purpose
501
501
"timeToLive": "00:03:00", // timespan the token is valid for
502
- "userVerificationRequirement": "preferred" // requirement for if the user has to verify they're allowed to use an authenticator
502
+ "userVerificationRequirement": "preferred", // requirement for if the user has to verify they're allowed to use an authenticator
503
503
"performedBy": "user_123" // user identifier to track changes to the configuration
504
504
}
505
505
```
@@ -516,7 +516,7 @@ If an unknown purpose is passed through, the `/auth-configs` endpoint will retur
516
516
` POST ` requests made to the ` /auth-configs/delete ` endpoint delete a specific authentication configuration, as specified by a ` purpose ` .
517
517
518
518
``` http request
519
- GET https://v4.passwwordless .dev/auth-configs/add HTTP/1.1
519
+ GET https://v4.passwordless .dev/auth-configs/add HTTP/1.1
520
520
ApiSecret: myapplication:secret:11f8dd7733744f2596f2a28544b5fbc4
521
521
Content-Type: application/json
522
522
0 commit comments