@polaris-auth/client 0.6.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,31 @@
1
+ /** The `passwordless` plugin's routes as methods of `client.passwordless`. */
2
+ export function passwordless(client) {
3
+ return {
4
+ /** POST /email-otp/reset-password: Reset the password with an email code */
5
+ emailOtpResetPassword: (...init) => client.POST("/email-otp/reset-password", ...init),
6
+ /** POST /email-otp/send: Send an email code */
7
+ emailOtpSend: (...init) => client.POST("/email-otp/send", ...init),
8
+ /** POST /email-otp/verify: Sign in with an email code */
9
+ emailOtpVerify: (...init) => client.POST("/email-otp/verify", ...init),
10
+ /** POST /email-otp/verify-email: Verify the email with a code */
11
+ emailOtpVerifyEmail: (...init) => client.POST("/email-otp/verify-email", ...init),
12
+ /** POST /magic-link/exchange: Exchange the magic link's code for the session */
13
+ magicLinkExchange: (...init) => client.POST("/magic-link/exchange", ...init),
14
+ /** POST /magic-link/send: Send a magic link */
15
+ magicLinkSend: (...init) => client.POST("/magic-link/send", ...init),
16
+ /** GET /magic-link/verify: Open a magic link */
17
+ magicLinkVerify: (...init) => client.GET("/magic-link/verify", ...init),
18
+ /** POST /one-time-token/generate: Generate a one-time token */
19
+ oneTimeTokenGenerate: (...init) => client.POST("/one-time-token/generate", ...init),
20
+ /** POST /one-time-token/verify: Sign in with a one-time token */
21
+ oneTimeTokenVerify: (...init) => client.POST("/one-time-token/verify", ...init),
22
+ /** POST /phone/add: Add a phone number */
23
+ phoneAdd: (...init) => client.POST("/phone/add", ...init),
24
+ /** POST /phone/confirm: Confirm a phone number */
25
+ phoneConfirm: (...init) => client.POST("/phone/confirm", ...init),
26
+ /** POST /phone/send: Send a phone sign-in code */
27
+ phoneSend: (...init) => client.POST("/phone/send", ...init),
28
+ /** POST /phone/verify: Sign in with a phone code */
29
+ phoneVerify: (...init) => client.POST("/phone/verify", ...init),
30
+ };
31
+ }