@spfn/auth 0.3.0-beta.25 → 0.3.0-beta.27
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.
- package/README.md +49 -7
- package/dist/client-proof.js +3 -2
- package/dist/client-proof.js.map +1 -1
- package/dist/index.d.ts +194 -189
- package/dist/index.js +40 -40
- package/dist/index.js.map +1 -1
- package/dist/{machine-principals-CdEgxOB1.d.ts → machine-principals-BvRw8b8t.d.ts} +18 -0
- package/dist/nextjs/api.js +16 -13
- package/dist/nextjs/api.js.map +1 -1
- package/dist/server.d.ts +37 -4
- package/dist/server.js +210 -33
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -606,59 +606,49 @@ var routeMap = {
|
|
|
606
606
|
requestSignupLink: { method: "POST", path: "/_auth/signup/email" },
|
|
607
607
|
confirmSignupLink: { method: "POST", path: "/_auth/signup/email/confirm" },
|
|
608
608
|
completeSignup: { method: "POST", path: "/_auth/signup/password" },
|
|
609
|
+
requestPasswordReset: { method: "POST", path: "/_auth/password/reset" },
|
|
610
|
+
confirmPasswordReset: { method: "POST", path: "/_auth/password/reset/confirm" },
|
|
611
|
+
completePasswordReset: { method: "POST", path: "/_auth/password/reset/complete" },
|
|
609
612
|
login: { method: "POST", path: "/_auth/login" },
|
|
610
613
|
startDeviceAuth: { method: "POST", path: "/_auth/device/start" },
|
|
611
614
|
pollDeviceAuth: { method: "POST", path: "/_auth/device/poll" },
|
|
612
615
|
getDeviceAuthInfo: { method: "POST", path: "/_auth/device/info" },
|
|
613
616
|
approveDeviceAuth: { method: "POST", path: "/_auth/device/approve" },
|
|
614
617
|
denyDeviceAuth: { method: "POST", path: "/_auth/device/deny" },
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
issueOneTimeToken: { method: "POST", path: "/_auth/tokens" },
|
|
623
|
-
requestPasswordReset: { method: "POST", path: "/_auth/password/reset" },
|
|
624
|
-
confirmPasswordReset: { method: "POST", path: "/_auth/password/reset/confirm" },
|
|
625
|
-
completePasswordReset: { method: "POST", path: "/_auth/password/reset/complete" },
|
|
626
|
-
confirmRevokeAllLink: { method: "POST", path: "/_auth/keys/revoke-all/confirm" },
|
|
627
|
-
consumeRevokeAllLink: { method: "POST", path: "/_auth/keys/revoke-all/consume" },
|
|
618
|
+
passkeyRegisterOptions: { method: "POST", path: "/_auth/passkeys/register/options" },
|
|
619
|
+
passkeyRegisterVerify: { method: "POST", path: "/_auth/passkeys/register/verify" },
|
|
620
|
+
passkeyLoginOptions: { method: "POST", path: "/_auth/passkeys/login/options" },
|
|
621
|
+
passkeyLoginVerify: { method: "POST", path: "/_auth/passkeys/login/verify" },
|
|
622
|
+
listPasskeys: { method: "POST", path: "/_auth/passkeys/list" },
|
|
623
|
+
renamePasskey: { method: "POST", path: "/_auth/passkeys/rename" },
|
|
624
|
+
revokePasskey: { method: "POST", path: "/_auth/passkeys/revoke" },
|
|
628
625
|
mfaTotpEnroll: { method: "POST", path: "/_auth/mfa/totp/enroll" },
|
|
629
626
|
mfaTotpConfirm: { method: "POST", path: "/_auth/mfa/totp/confirm" },
|
|
630
627
|
mfaDisable: { method: "POST", path: "/_auth/mfa/disable" },
|
|
631
628
|
mfaMarkPasskey: { method: "POST", path: "/_auth/mfa/passkey/mark" },
|
|
632
629
|
mfaRegenerateRecoveryCodes: { method: "POST", path: "/_auth/mfa/recovery/regenerate" },
|
|
633
630
|
mfaStatus: { method: "GET", path: "/_auth/mfa/status" },
|
|
634
|
-
mfaVerify: { method: "POST", path: "/_auth/mfa/verify" },
|
|
635
|
-
mfaVerifyOptions: { method: "POST", path: "/_auth/mfa/verify/options" },
|
|
636
631
|
mfaStepUp: { method: "POST", path: "/_auth/mfa/step-up" },
|
|
637
632
|
mfaStepUpOptions: { method: "POST", path: "/_auth/mfa/step-up/options" },
|
|
633
|
+
mfaVerify: { method: "POST", path: "/_auth/mfa/verify" },
|
|
634
|
+
mfaVerifyOptions: { method: "POST", path: "/_auth/mfa/verify/options" },
|
|
635
|
+
logout: { method: "POST", path: "/_auth/logout" },
|
|
636
|
+
rotateKey: { method: "POST", path: "/_auth/keys/rotate" },
|
|
637
|
+
listKeys: { method: "POST", path: "/_auth/keys/list" },
|
|
638
|
+
revokeKey: { method: "POST", path: "/_auth/keys/revoke" },
|
|
639
|
+
revokeAllKeys: { method: "POST", path: "/_auth/keys/revoke-all" },
|
|
640
|
+
confirmRevokeAllLink: { method: "POST", path: "/_auth/keys/revoke-all/confirm" },
|
|
641
|
+
consumeRevokeAllLink: { method: "POST", path: "/_auth/keys/revoke-all/consume" },
|
|
642
|
+
changePassword: { method: "PUT", path: "/_auth/password" },
|
|
643
|
+
getAuthSession: { method: "GET", path: "/_auth/session" },
|
|
638
644
|
setSessionBinding: { method: "POST", path: "/_auth/session/binding" },
|
|
639
645
|
getSessionBinding: { method: "GET", path: "/_auth/session/binding" },
|
|
640
646
|
sessionBindingDisableOptions: { method: "POST", path: "/_auth/session/binding/disable/options" },
|
|
641
647
|
sessionRenewOptions: { method: "POST", path: "/_auth/session/renew/options" },
|
|
642
648
|
sessionRenewVerify: { method: "POST", path: "/_auth/session/renew/verify" },
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
passkeyLoginVerify: { method: "POST", path: "/_auth/passkeys/login/verify" },
|
|
647
|
-
listPasskeys: { method: "POST", path: "/_auth/passkeys/list" },
|
|
648
|
-
renamePasskey: { method: "POST", path: "/_auth/passkeys/rename" },
|
|
649
|
-
revokePasskey: { method: "POST", path: "/_auth/passkeys/revoke" },
|
|
650
|
-
getInvitation: { method: "GET", path: "/_auth/invitations/:token" },
|
|
651
|
-
acceptInvitation: { method: "POST", path: "/_auth/invitations/accept" },
|
|
652
|
-
createInvitation: { method: "POST", path: "/_auth/invitations" },
|
|
653
|
-
listInvitations: { method: "GET", path: "/_auth/invitations" },
|
|
654
|
-
cancelInvitation: { method: "POST", path: "/_auth/invitations/cancel" },
|
|
655
|
-
resendInvitation: { method: "POST", path: "/_auth/invitations/resend" },
|
|
656
|
-
deleteInvitation: { method: "POST", path: "/_auth/invitations/delete" },
|
|
657
|
-
getUserProfile: { method: "GET", path: "/_auth/users/profile" },
|
|
658
|
-
updateUserProfile: { method: "PATCH", path: "/_auth/users/profile" },
|
|
659
|
-
checkUsername: { method: "GET", path: "/_auth/users/username/check" },
|
|
660
|
-
updateUsername: { method: "PATCH", path: "/_auth/users/username" },
|
|
661
|
-
updateLocale: { method: "PATCH", path: "/_auth/users/locale" },
|
|
649
|
+
issueOneTimeToken: { method: "POST", path: "/_auth/tokens" },
|
|
650
|
+
requestAccountDeletion: { method: "POST", path: "/_auth/deletion/request" },
|
|
651
|
+
cancelAccountDeletion: { method: "POST", path: "/_auth/deletion/cancel" },
|
|
662
652
|
oauthGoogleStart: { method: "GET", path: "/_auth/oauth/google" },
|
|
663
653
|
oauthGoogleCallback: { method: "GET", path: "/_auth/oauth/google/callback" },
|
|
664
654
|
oauthStart: { method: "POST", path: "/_auth/oauth/start" },
|
|
@@ -671,24 +661,34 @@ var routeMap = {
|
|
|
671
661
|
oauthNative: { method: "POST", path: "/_auth/oauth/:provider/native" },
|
|
672
662
|
oauthUnlinkNotify: { method: "POST", path: "/_auth/oauth/:provider/unlink-notify" },
|
|
673
663
|
oauthUnlinkNotifyGet: { method: "GET", path: "/_auth/oauth/:provider/unlink-notify" },
|
|
664
|
+
getInvitation: { method: "GET", path: "/_auth/invitations/:token" },
|
|
665
|
+
acceptInvitation: { method: "POST", path: "/_auth/invitations/accept" },
|
|
666
|
+
createInvitation: { method: "POST", path: "/_auth/invitations" },
|
|
667
|
+
listInvitations: { method: "GET", path: "/_auth/invitations" },
|
|
668
|
+
cancelInvitation: { method: "POST", path: "/_auth/invitations/cancel" },
|
|
669
|
+
resendInvitation: { method: "POST", path: "/_auth/invitations/resend" },
|
|
670
|
+
deleteInvitation: { method: "POST", path: "/_auth/invitations/delete" },
|
|
671
|
+
getUserProfile: { method: "GET", path: "/_auth/users/profile" },
|
|
672
|
+
updateUserProfile: { method: "PATCH", path: "/_auth/users/profile" },
|
|
673
|
+
checkUsername: { method: "GET", path: "/_auth/users/username/check" },
|
|
674
|
+
updateUsername: { method: "PATCH", path: "/_auth/users/username" },
|
|
675
|
+
updateLocale: { method: "PATCH", path: "/_auth/users/locale" },
|
|
674
676
|
listRoles: { method: "GET", path: "/_auth/admin/roles" },
|
|
675
677
|
createAdminRole: { method: "POST", path: "/_auth/admin/roles" },
|
|
676
678
|
updateAdminRole: { method: "PATCH", path: "/_auth/admin/roles/:id" },
|
|
677
679
|
deleteAdminRole: { method: "DELETE", path: "/_auth/admin/roles/:id" },
|
|
678
680
|
updateUserRole: { method: "PATCH", path: "/_auth/admin/users/:userId/role" },
|
|
679
|
-
requestAccountDeletion: { method: "POST", path: "/_auth/deletion/request" },
|
|
680
|
-
cancelAccountDeletion: { method: "POST", path: "/_auth/deletion/cancel" },
|
|
681
681
|
issueOpsToken: { method: "POST", path: "/_auth/ops-tokens" },
|
|
682
682
|
listOpsTokens: { method: "GET", path: "/_auth/ops-tokens" },
|
|
683
683
|
revokeOpsToken: { method: "DELETE", path: "/_auth/ops-tokens/:id" },
|
|
684
684
|
registerOAuth2Client: { method: "POST", path: "/_auth/oauth2/register" },
|
|
685
|
-
listOAuth2Grants: { method: "GET", path: "/_auth/oauth2/grants" },
|
|
686
|
-
revokeOAuth2Grant: { method: "DELETE", path: "/_auth/oauth2/grants/:id" },
|
|
687
|
-
oauth2AuthorizationServerMetadata: { method: "GET", path: "/.well-known/oauth-authorization-server" },
|
|
688
685
|
getOAuth2Authorize: { method: "GET", path: "/_auth/oauth2/authorize" },
|
|
689
686
|
createOAuth2AuthorizationCode: { method: "POST", path: "/_auth/oauth2/authorize" },
|
|
690
687
|
oauth2Token: { method: "POST", path: "/_auth/oauth2/token" },
|
|
691
|
-
oauth2Revoke: { method: "POST", path: "/_auth/oauth2/revoke" }
|
|
688
|
+
oauth2Revoke: { method: "POST", path: "/_auth/oauth2/revoke" },
|
|
689
|
+
listOAuth2Grants: { method: "GET", path: "/_auth/oauth2/grants" },
|
|
690
|
+
revokeOAuth2Grant: { method: "DELETE", path: "/_auth/oauth2/grants/:id" },
|
|
691
|
+
oauth2AuthorizationServerMetadata: { method: "GET", path: "/.well-known/oauth-authorization-server" }
|
|
692
692
|
};
|
|
693
693
|
|
|
694
694
|
// src/lib/types.ts
|