better-auth 1.2.0-beta.16 → 1.2.0-beta.18
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/dist/adapters/drizzle-adapter/drizzle-adapter.d.ts +67 -0
- package/dist/adapters/drizzle-adapter/drizzle-adapter.d.ts.map +1 -0
- package/dist/adapters/drizzle-adapter/index.cjs +285 -0
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -0
- package/dist/adapters/drizzle-adapter/index.d.ts.map +1 -0
- package/dist/adapters/drizzle-adapter/index.mjs +283 -0
- package/dist/adapters/kysely-adapter/dialect.d.ts +8 -0
- package/dist/adapters/kysely-adapter/dialect.d.ts.map +1 -0
- package/dist/adapters/kysely-adapter/index.cjs +29 -0
- package/dist/adapters/kysely-adapter/index.d.ts +4 -0
- package/dist/adapters/kysely-adapter/index.d.ts.map +1 -0
- package/dist/adapters/kysely-adapter/index.mjs +22 -0
- package/dist/adapters/kysely-adapter/kysely-adapter.d.ts +57 -0
- package/dist/adapters/kysely-adapter/kysely-adapter.d.ts.map +1 -0
- package/dist/adapters/kysely-adapter/types.d.ts +2 -0
- package/dist/adapters/kysely-adapter/types.d.ts.map +1 -0
- package/dist/adapters/memory-adapter/index.cjs +28 -0
- package/dist/adapters/memory-adapter/index.d.ts +2 -0
- package/dist/adapters/memory-adapter/index.d.ts.map +1 -0
- package/dist/adapters/memory-adapter/index.mjs +22 -0
- package/dist/adapters/memory-adapter/memory-adapter.d.ts +50 -0
- package/dist/adapters/memory-adapter/memory-adapter.d.ts.map +1 -0
- package/dist/adapters/mongodb-adapter/index.cjs +282 -0
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -0
- package/dist/adapters/mongodb-adapter/index.d.ts.map +1 -0
- package/dist/adapters/mongodb-adapter/index.mjs +280 -0
- package/dist/adapters/mongodb-adapter/mongodb-adapter.d.ts +48 -0
- package/dist/adapters/mongodb-adapter/mongodb-adapter.d.ts.map +1 -0
- package/dist/adapters/prisma-adapter/index.cjs +254 -0
- package/dist/adapters/prisma-adapter/index.d.ts +2 -0
- package/dist/adapters/prisma-adapter/index.d.ts.map +1 -0
- package/dist/adapters/prisma-adapter/index.mjs +252 -0
- package/dist/adapters/prisma-adapter/prisma-adapter.d.ts +57 -0
- package/dist/adapters/prisma-adapter/prisma-adapter.d.ts.map +1 -0
- package/dist/adapters/test.cjs +18 -6
- package/dist/adapters/test.d.ts +4 -12
- package/dist/adapters/test.d.ts.map +1 -0
- package/dist/adapters/test.mjs +439 -0
- package/dist/adapters/utils.d.ts +3 -0
- package/dist/adapters/utils.d.ts.map +1 -0
- package/dist/api/call.d.ts +1143 -0
- package/dist/api/call.d.ts.map +1 -0
- package/dist/api/index.cjs +788 -0
- package/dist/api/index.d.ts +7145 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.mjs +745 -0
- package/dist/api/middlewares/index.d.ts +2 -0
- package/dist/api/middlewares/index.d.ts.map +1 -0
- package/dist/api/middlewares/origin-check.d.ts +24 -0
- package/dist/api/middlewares/origin-check.d.ts.map +1 -0
- package/dist/api/rate-limiter/index.d.ts +7 -0
- package/dist/api/rate-limiter/index.d.ts.map +1 -0
- package/dist/api/routes/account.d.ts +283 -0
- package/dist/api/routes/account.d.ts.map +1 -0
- package/dist/api/routes/callback.d.ts +84 -0
- package/dist/api/routes/callback.d.ts.map +1 -0
- package/dist/api/routes/email-verification.d.ts +205 -0
- package/dist/api/routes/email-verification.d.ts.map +1 -0
- package/dist/api/routes/error.d.ts +46 -0
- package/dist/api/routes/error.d.ts.map +1 -0
- package/dist/api/routes/forget-password.d.ts +221 -0
- package/dist/api/routes/forget-password.d.ts.map +1 -0
- package/dist/api/routes/index.d.ts +12 -0
- package/dist/api/routes/index.d.ts.map +1 -0
- package/dist/api/routes/ok.d.ts +55 -0
- package/dist/api/routes/ok.d.ts.map +1 -0
- package/dist/api/routes/session.d.ts +606 -0
- package/dist/api/routes/session.d.ts.map +1 -0
- package/dist/api/routes/sign-in.d.ts +329 -0
- package/dist/api/routes/sign-in.d.ts.map +1 -0
- package/dist/api/routes/sign-out.d.ts +55 -0
- package/dist/api/routes/sign-out.d.ts.map +1 -0
- package/dist/api/routes/sign-up.d.ts +768 -0
- package/dist/api/routes/sign-up.d.ts.map +1 -0
- package/dist/api/routes/update-user.d.ts +1160 -0
- package/dist/api/routes/update-user.d.ts.map +1 -0
- package/dist/api/to-auth-endpoints.d.ts +4 -0
- package/dist/api/to-auth-endpoints.d.ts.map +1 -0
- package/dist/auth.d.ts +3590 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/client/config.d.ts +74 -0
- package/dist/client/config.d.ts.map +1 -0
- package/dist/client/fetch-plugins.d.ts +8 -0
- package/dist/client/fetch-plugins.d.ts.map +1 -0
- package/dist/client/index.cjs +51 -0
- package/dist/client/index.d.ts +11 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.mjs +47 -0
- package/dist/client/parser.d.ts +13 -0
- package/dist/client/parser.d.ts.map +1 -0
- package/dist/client/path-to-object.d.ts +63 -0
- package/dist/client/path-to-object.d.ts.map +1 -0
- package/dist/client/plugins/index.cjs +569 -0
- package/dist/client/plugins/index.d.ts +21 -0
- package/dist/client/plugins/index.d.ts.map +1 -0
- package/dist/client/plugins/index.mjs +548 -0
- package/dist/client/plugins/infer-plugin.d.ts +12 -0
- package/dist/client/plugins/infer-plugin.d.ts.map +1 -0
- package/dist/client/proxy.d.ts +9 -0
- package/dist/client/proxy.d.ts.map +1 -0
- package/dist/client/query.d.ts +14 -0
- package/dist/client/query.d.ts.map +1 -0
- package/dist/client/react/index.cjs +65 -0
- package/dist/client/react/index.d.ts +113 -0
- package/dist/client/react/index.d.ts.map +1 -0
- package/dist/client/react/index.mjs +61 -0
- package/dist/client/react/react-store.d.ts +21 -0
- package/dist/client/react/react-store.d.ts.map +1 -0
- package/dist/client/session-atom.d.ts +16 -0
- package/dist/client/session-atom.d.ts.map +1 -0
- package/dist/client/solid/index.cjs +58 -0
- package/dist/client/solid/index.d.ts +106 -0
- package/dist/client/solid/index.d.ts.map +1 -0
- package/dist/client/solid/index.mjs +56 -0
- package/dist/client/solid/solid-store.d.ts +10 -0
- package/dist/client/solid/solid-store.d.ts.map +1 -0
- package/dist/client/svelte/index.cjs +42 -0
- package/dist/client/svelte/index.d.ts +111 -0
- package/dist/client/svelte/index.d.ts.map +1 -0
- package/dist/client/svelte/index.mjs +40 -0
- package/dist/client/test-plugin.d.ts +130 -0
- package/dist/client/test-plugin.d.ts.map +1 -0
- package/dist/client/types.d.ts +79 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/vanilla.d.ts +110 -0
- package/dist/client/vanilla.d.ts.map +1 -0
- package/dist/client/vue/index.cjs +87 -0
- package/dist/client/vue/index.d.ts +134 -0
- package/dist/client/vue/index.d.ts.map +1 -0
- package/dist/client/vue/index.mjs +85 -0
- package/dist/client/vue/vue-store.d.ts +5 -0
- package/dist/client/vue/vue-store.d.ts.map +1 -0
- package/dist/cookies/check-cookies.d.ts +5 -0
- package/dist/cookies/check-cookies.d.ts.map +1 -0
- package/dist/cookies/cookie-utils.d.ts +17 -0
- package/dist/cookies/cookie-utils.d.ts.map +1 -0
- package/dist/cookies/index.cjs +392 -0
- package/dist/cookies/index.d.ts +51 -0
- package/dist/cookies/index.d.ts.map +1 -0
- package/dist/cookies/index.mjs +381 -0
- package/dist/crypto/buffer.d.ts +5 -0
- package/dist/crypto/buffer.d.ts.map +1 -0
- package/dist/crypto/hash.d.ts +3 -0
- package/dist/crypto/hash.d.ts.map +1 -0
- package/dist/crypto/index.cjs +57 -0
- package/dist/crypto/index.d.ts +16 -0
- package/dist/crypto/index.d.ts.map +1 -0
- package/dist/crypto/index.mjs +48 -0
- package/dist/crypto/jwt.d.ts +2 -0
- package/dist/crypto/jwt.d.ts.map +1 -0
- package/dist/crypto/password.d.ts +6 -0
- package/dist/crypto/password.d.ts.map +1 -0
- package/dist/crypto/random.d.ts +2 -0
- package/dist/crypto/random.d.ts.map +1 -0
- package/dist/db/field.d.ts +148 -0
- package/dist/db/field.d.ts.map +1 -0
- package/dist/db/get-migration.d.ts +19 -0
- package/dist/db/get-migration.d.ts.map +1 -0
- package/dist/db/get-schema.d.ts +7 -0
- package/dist/db/get-schema.d.ts.map +1 -0
- package/dist/db/get-tables.d.ts +23 -0
- package/dist/db/get-tables.d.ts.map +1 -0
- package/dist/db/index.cjs +99 -0
- package/dist/db/index.d.ts +10 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.mjs +72 -0
- package/dist/db/internal-adapter.d.ts +219 -0
- package/dist/db/internal-adapter.d.ts.map +1 -0
- package/dist/db/schema.d.ts +216 -0
- package/dist/db/schema.d.ts.map +1 -0
- package/dist/db/to-zod.d.ts +4 -0
- package/dist/db/to-zod.d.ts.map +1 -0
- package/dist/db/utils.d.ts +6 -0
- package/dist/db/utils.d.ts.map +1 -0
- package/dist/db/with-hooks.d.ts +19 -0
- package/dist/db/with-hooks.d.ts.map +1 -0
- package/dist/error/codes.d.ts +26 -0
- package/dist/error/codes.d.ts.map +1 -0
- package/dist/error/index.d.ts +7 -0
- package/dist/error/index.d.ts.map +1 -0
- package/dist/index.cjs +98 -101
- package/dist/index.d.ts +7 -26
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +249 -0
- package/dist/init.d.ts +71 -0
- package/dist/init.d.ts.map +1 -0
- package/dist/integrations/next-js.cjs +101 -0
- package/dist/integrations/next-js.d.ts +24 -0
- package/dist/integrations/next-js.d.ts.map +1 -0
- package/dist/integrations/next-js.mjs +98 -0
- package/dist/integrations/node.cjs +23 -0
- package/dist/integrations/node.d.ts +7 -0
- package/dist/integrations/node.d.ts.map +1 -0
- package/dist/integrations/node.mjs +20 -0
- package/dist/integrations/solid-start.cjs +13 -0
- package/dist/integrations/solid-start.d.ts +11 -0
- package/dist/integrations/solid-start.d.ts.map +1 -0
- package/dist/integrations/solid-start.mjs +11 -0
- package/dist/integrations/svelte-kit.cjs +37 -0
- package/dist/integrations/svelte-kit.d.ts +20 -0
- package/dist/integrations/svelte-kit.d.ts.map +1 -0
- package/dist/integrations/svelte-kit.mjs +33 -0
- package/dist/oauth2/create-authorization-url.d.ts +14 -0
- package/dist/oauth2/create-authorization-url.d.ts.map +1 -0
- package/dist/oauth2/index.cjs +30 -0
- package/dist/oauth2/index.d.ts +6 -0
- package/dist/oauth2/index.d.ts.map +1 -0
- package/dist/oauth2/index.mjs +18 -0
- package/dist/oauth2/link-account.d.ts +40 -0
- package/dist/oauth2/link-account.d.ts.map +1 -0
- package/dist/oauth2/state.d.ts +20 -0
- package/dist/oauth2/state.d.ts.map +1 -0
- package/dist/oauth2/types.d.ts +112 -0
- package/dist/oauth2/types.d.ts.map +1 -0
- package/dist/oauth2/utils.d.ts +4 -0
- package/dist/oauth2/utils.d.ts.map +1 -0
- package/dist/oauth2/validate-authorization-code.d.ts +12 -0
- package/dist/oauth2/validate-authorization-code.d.ts.map +1 -0
- package/dist/plugins/access/access.d.ts +26 -0
- package/dist/plugins/access/access.d.ts.map +1 -0
- package/dist/plugins/access/index.cjs +72 -0
- package/dist/plugins/access/index.d.ts +3 -0
- package/dist/plugins/access/index.d.ts.map +1 -0
- package/dist/plugins/access/index.mjs +69 -0
- package/dist/plugins/access/types.d.ts +15 -0
- package/dist/plugins/access/types.d.ts.map +1 -0
- package/dist/plugins/additional-fields/client.d.ts +93 -0
- package/dist/plugins/additional-fields/client.d.ts.map +1 -0
- package/dist/plugins/admin/access/index.cjs +28 -0
- package/dist/plugins/admin/access/index.d.ts +2 -0
- package/dist/plugins/admin/access/index.d.ts.map +1 -0
- package/dist/plugins/admin/access/index.mjs +22 -0
- package/dist/plugins/admin/access/statement.d.ts +111 -0
- package/dist/plugins/admin/access/statement.d.ts.map +1 -0
- package/dist/plugins/admin/admin.d.ts +1390 -0
- package/dist/plugins/admin/admin.d.ts.map +1 -0
- package/dist/plugins/admin/call.d.ts +23 -0
- package/dist/plugins/admin/call.d.ts.map +1 -0
- package/dist/plugins/admin/client.d.ts +43 -0
- package/dist/plugins/admin/client.d.ts.map +1 -0
- package/dist/plugins/admin/error-codes.d.ts +14 -0
- package/dist/plugins/admin/error-codes.d.ts.map +1 -0
- package/dist/plugins/admin/has-permission.d.ts +10 -0
- package/dist/plugins/admin/has-permission.d.ts.map +1 -0
- package/dist/plugins/admin/index.cjs +44 -0
- package/dist/plugins/admin/index.d.ts +2 -0
- package/dist/plugins/admin/index.d.ts.map +1 -0
- package/dist/plugins/admin/index.mjs +38 -0
- package/dist/plugins/anonymous/client.d.ts +9 -0
- package/dist/plugins/anonymous/client.d.ts.map +1 -0
- package/dist/plugins/anonymous/index.cjs +186 -0
- package/dist/plugins/anonymous/index.d.ts +152 -0
- package/dist/plugins/anonymous/index.d.ts.map +1 -0
- package/dist/plugins/anonymous/index.mjs +184 -0
- package/dist/plugins/api-key/client.d.ts +9 -0
- package/dist/plugins/api-key/client.d.ts.map +1 -0
- package/dist/plugins/api-key/index.d.ts +873 -0
- package/dist/plugins/api-key/index.d.ts.map +1 -0
- package/dist/plugins/api-key/rate-limit.d.ts +21 -0
- package/dist/plugins/api-key/rate-limit.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/create-api-key.d.ts +137 -0
- package/dist/plugins/api-key/routes/create-api-key.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/delete-all-expired-api-keys.d.ts +40 -0
- package/dist/plugins/api-key/routes/delete-all-expired-api-keys.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/delete-api-key.d.ts +80 -0
- package/dist/plugins/api-key/routes/delete-api-key.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/get-api-key.d.ts +118 -0
- package/dist/plugins/api-key/routes/get-api-key.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/index.d.ts +709 -0
- package/dist/plugins/api-key/routes/index.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/list-api-keys.d.ts +108 -0
- package/dist/plugins/api-key/routes/list-api-keys.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/update-api-key.d.ts +135 -0
- package/dist/plugins/api-key/routes/update-api-key.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/verify-api-key.d.ts +137 -0
- package/dist/plugins/api-key/routes/verify-api-key.d.ts.map +1 -0
- package/dist/plugins/api-key/schema.d.ts +189 -0
- package/dist/plugins/api-key/schema.d.ts.map +1 -0
- package/dist/plugins/api-key/types.d.ts +267 -0
- package/dist/plugins/api-key/types.d.ts.map +1 -0
- package/dist/plugins/bearer/index.cjs +120 -0
- package/dist/plugins/bearer/index.d.ts +48 -0
- package/dist/plugins/bearer/index.d.ts.map +1 -0
- package/dist/plugins/bearer/index.mjs +118 -0
- package/dist/plugins/captcha/constants.d.ts +8 -0
- package/dist/plugins/captcha/constants.d.ts.map +1 -0
- package/dist/plugins/captcha/error-codes.d.ts +7 -0
- package/dist/plugins/captcha/error-codes.d.ts.map +1 -0
- package/dist/plugins/captcha/index.cjs +134 -0
- package/dist/plugins/captcha/index.d.ts +14 -0
- package/dist/plugins/captcha/index.d.ts.map +1 -0
- package/dist/plugins/captcha/index.mjs +132 -0
- package/dist/plugins/captcha/types.d.ts +21 -0
- package/dist/plugins/captcha/types.d.ts.map +1 -0
- package/dist/plugins/captcha/verify-handlers/cloudflare-turnstile.d.ts +10 -0
- package/dist/plugins/captcha/verify-handlers/cloudflare-turnstile.d.ts.map +1 -0
- package/dist/plugins/captcha/verify-handlers/google-recaptcha.d.ts +10 -0
- package/dist/plugins/captcha/verify-handlers/google-recaptcha.d.ts.map +1 -0
- package/dist/plugins/captcha/verify-handlers/index.d.ts +3 -0
- package/dist/plugins/captcha/verify-handlers/index.d.ts.map +1 -0
- package/dist/plugins/custom-session/client.d.ts +12 -0
- package/dist/plugins/custom-session/client.d.ts.map +1 -0
- package/dist/plugins/custom-session/index.cjs +76 -0
- package/dist/plugins/custom-session/index.d.ts +58 -0
- package/dist/plugins/custom-session/index.d.ts.map +1 -0
- package/dist/plugins/custom-session/index.mjs +74 -0
- package/dist/plugins/email-otp/client.d.ts +6 -0
- package/dist/plugins/email-otp/client.d.ts.map +1 -0
- package/dist/plugins/email-otp/index.cjs +707 -0
- package/dist/plugins/email-otp/index.d.ts +606 -0
- package/dist/plugins/email-otp/index.d.ts.map +1 -0
- package/dist/plugins/email-otp/index.mjs +705 -0
- package/dist/plugins/generic-oauth/client.d.ts +6 -0
- package/dist/plugins/generic-oauth/client.d.ts.map +1 -0
- package/dist/plugins/generic-oauth/index.cjs +542 -0
- package/dist/plugins/generic-oauth/index.d.ts +354 -0
- package/dist/plugins/generic-oauth/index.d.ts.map +1 -0
- package/dist/plugins/generic-oauth/index.mjs +540 -0
- package/dist/plugins/index.cjs +1396 -0
- package/dist/plugins/index.d.ts +23 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.mjs +1371 -0
- package/dist/plugins/jwt/adapter.d.ts +23 -0
- package/dist/plugins/jwt/adapter.d.ts.map +1 -0
- package/dist/plugins/jwt/client.d.ts +6 -0
- package/dist/plugins/jwt/client.d.ts.map +1 -0
- package/dist/plugins/jwt/index.cjs +282 -0
- package/dist/plugins/jwt/index.d.ts +277 -0
- package/dist/plugins/jwt/index.d.ts.map +1 -0
- package/dist/plugins/jwt/index.mjs +280 -0
- package/dist/plugins/jwt/schema.d.ts +37 -0
- package/dist/plugins/jwt/schema.d.ts.map +1 -0
- package/dist/plugins/jwt/utils.d.ts +11 -0
- package/dist/plugins/jwt/utils.d.ts.map +1 -0
- package/dist/plugins/magic-link/client.d.ts +6 -0
- package/dist/plugins/magic-link/client.d.ts.map +1 -0
- package/dist/plugins/magic-link/index.cjs +242 -0
- package/dist/plugins/magic-link/index.d.ts +218 -0
- package/dist/plugins/magic-link/index.d.ts.map +1 -0
- package/dist/plugins/magic-link/index.mjs +240 -0
- package/dist/plugins/multi-session/client.d.ts +10 -0
- package/dist/plugins/multi-session/client.d.ts.map +1 -0
- package/dist/plugins/multi-session/index.cjs +271 -0
- package/dist/plugins/multi-session/index.d.ts +257 -0
- package/dist/plugins/multi-session/index.d.ts.map +1 -0
- package/dist/plugins/multi-session/index.mjs +269 -0
- package/dist/plugins/oauth-proxy/index.cjs +174 -0
- package/dist/plugins/oauth-proxy/index.d.ts +134 -0
- package/dist/plugins/oauth-proxy/index.d.ts.map +1 -0
- package/dist/plugins/oauth-proxy/index.mjs +172 -0
- package/dist/plugins/oidc-provider/authorize.d.ts +4 -0
- package/dist/plugins/oidc-provider/authorize.d.ts.map +1 -0
- package/dist/plugins/oidc-provider/client.d.ts +6 -0
- package/dist/plugins/oidc-provider/client.d.ts.map +1 -0
- package/dist/plugins/oidc-provider/index.cjs +1039 -0
- package/dist/plugins/oidc-provider/index.d.ts +483 -0
- package/dist/plugins/oidc-provider/index.d.ts.map +1 -0
- package/dist/plugins/oidc-provider/index.mjs +1037 -0
- package/dist/plugins/oidc-provider/schema.d.ts +105 -0
- package/dist/plugins/oidc-provider/schema.d.ts.map +1 -0
- package/dist/plugins/oidc-provider/types.d.ts +496 -0
- package/dist/plugins/oidc-provider/types.d.ts.map +1 -0
- package/dist/plugins/oidc-provider/ui.d.ts +9 -0
- package/dist/plugins/oidc-provider/ui.d.ts.map +1 -0
- package/dist/plugins/one-tap/client.d.ts +82 -0
- package/dist/plugins/one-tap/client.d.ts.map +1 -0
- package/dist/plugins/one-tap/index.cjs +197 -0
- package/dist/plugins/one-tap/index.d.ts +114 -0
- package/dist/plugins/one-tap/index.d.ts.map +1 -0
- package/dist/plugins/one-tap/index.mjs +195 -0
- package/dist/plugins/open-api/generator.d.ts +101 -0
- package/dist/plugins/open-api/generator.d.ts.map +1 -0
- package/dist/plugins/open-api/index.cjs +480 -0
- package/dist/plugins/open-api/index.d.ts +152 -0
- package/dist/plugins/open-api/index.d.ts.map +1 -0
- package/dist/plugins/open-api/index.mjs +478 -0
- package/dist/plugins/open-api/logo.d.ts +2 -0
- package/dist/plugins/open-api/logo.d.ts.map +1 -0
- package/dist/plugins/organization/access/index.d.ts +2 -0
- package/dist/plugins/organization/access/index.d.ts.map +1 -0
- package/dist/plugins/organization/access/statement.d.ts +180 -0
- package/dist/plugins/organization/access/statement.d.ts.map +1 -0
- package/dist/plugins/organization/adapter.d.ts +291 -0
- package/dist/plugins/organization/adapter.d.ts.map +1 -0
- package/dist/plugins/organization/call.d.ts +41 -0
- package/dist/plugins/organization/call.d.ts.map +1 -0
- package/dist/plugins/organization/client.d.ts +334 -0
- package/dist/plugins/organization/client.d.ts.map +1 -0
- package/dist/plugins/organization/error-codes.d.ts +31 -0
- package/dist/plugins/organization/error-codes.d.ts.map +1 -0
- package/dist/plugins/organization/has-permission.d.ts +9 -0
- package/dist/plugins/organization/has-permission.d.ts.map +1 -0
- package/dist/plugins/organization/index.cjs +44 -0
- package/dist/plugins/organization/index.d.ts +2 -0
- package/dist/plugins/organization/index.d.ts.map +1 -0
- package/dist/plugins/organization/index.mjs +38 -0
- package/dist/plugins/organization/organization.d.ts +6824 -0
- package/dist/plugins/organization/organization.d.ts.map +1 -0
- package/dist/plugins/organization/routes/crud-invites.d.ts +2382 -0
- package/dist/plugins/organization/routes/crud-invites.d.ts.map +1 -0
- package/dist/plugins/organization/routes/crud-members.d.ts +578 -0
- package/dist/plugins/organization/routes/crud-members.d.ts.map +1 -0
- package/dist/plugins/organization/routes/crud-org.d.ts +819 -0
- package/dist/plugins/organization/routes/crud-org.d.ts.map +1 -0
- package/dist/plugins/organization/routes/crud-team.d.ts +348 -0
- package/dist/plugins/organization/routes/crud-team.d.ts.map +1 -0
- package/dist/plugins/organization/schema.d.ts +147 -0
- package/dist/plugins/organization/schema.d.ts.map +1 -0
- package/dist/plugins/passkey/client.d.ts +140 -0
- package/dist/plugins/passkey/client.d.ts.map +1 -0
- package/dist/plugins/passkey/index.cjs +831 -0
- package/dist/plugins/passkey/index.d.ts +847 -0
- package/dist/plugins/passkey/index.d.ts.map +1 -0
- package/dist/plugins/passkey/index.mjs +829 -0
- package/dist/plugins/phone-number/client.d.ts +10 -0
- package/dist/plugins/phone-number/client.d.ts.map +1 -0
- package/dist/plugins/phone-number/index.cjs +605 -0
- package/dist/plugins/phone-number/index.d.ts +477 -0
- package/dist/plugins/phone-number/index.d.ts.map +1 -0
- package/dist/plugins/phone-number/index.mjs +603 -0
- package/dist/plugins/sso/client.d.ts +6 -0
- package/dist/plugins/sso/client.d.ts.map +1 -0
- package/dist/plugins/sso/index.cjs +582 -0
- package/dist/plugins/sso/index.d.ts +490 -0
- package/dist/plugins/sso/index.d.ts.map +1 -0
- package/dist/plugins/sso/index.mjs +580 -0
- package/dist/plugins/two-factor/backup-codes/index.d.ts +348 -0
- package/dist/plugins/two-factor/backup-codes/index.d.ts.map +1 -0
- package/dist/plugins/two-factor/client.d.ts +29 -0
- package/dist/plugins/two-factor/client.d.ts.map +1 -0
- package/dist/plugins/two-factor/constant.d.ts +3 -0
- package/dist/plugins/two-factor/constant.d.ts.map +1 -0
- package/dist/plugins/two-factor/error-code.d.ts +9 -0
- package/dist/plugins/two-factor/error-code.d.ts.map +1 -0
- package/dist/plugins/two-factor/index.cjs +982 -0
- package/dist/plugins/two-factor/index.d.ts +1199 -0
- package/dist/plugins/two-factor/index.d.ts.map +1 -0
- package/dist/plugins/two-factor/index.mjs +979 -0
- package/dist/plugins/two-factor/otp/index.d.ts +352 -0
- package/dist/plugins/two-factor/otp/index.d.ts.map +1 -0
- package/dist/plugins/two-factor/schema.d.ts +36 -0
- package/dist/plugins/two-factor/schema.d.ts.map +1 -0
- package/dist/plugins/two-factor/totp/index.d.ts +367 -0
- package/dist/plugins/two-factor/totp/index.d.ts.map +1 -0
- package/dist/plugins/two-factor/types.d.ts +52 -0
- package/dist/plugins/two-factor/types.d.ts.map +1 -0
- package/dist/plugins/two-factor/verify-middleware.d.ts +76 -0
- package/dist/plugins/two-factor/verify-middleware.d.ts.map +1 -0
- package/dist/plugins/username/client.d.ts +6 -0
- package/dist/plugins/username/client.d.ts.map +1 -0
- package/dist/plugins/username/index.cjs +302 -0
- package/dist/plugins/username/index.d.ts +166 -0
- package/dist/plugins/username/index.d.ts.map +1 -0
- package/dist/plugins/username/index.mjs +300 -0
- package/dist/plugins/username/schema.d.ts +21 -0
- package/dist/plugins/username/schema.d.ts.map +1 -0
- package/dist/shared/better-auth.0TC26uRi.mjs +16 -0
- package/dist/shared/better-auth.8zoxzg-F.mjs +40 -0
- package/dist/shared/better-auth.ANpbi45u.cjs +22 -0
- package/dist/shared/better-auth.B4Qoxdgc.mjs +10 -0
- package/dist/shared/better-auth.B5NYxGA3.mjs +1126 -0
- package/dist/shared/better-auth.BBVHlTCJ.mjs +140 -0
- package/dist/shared/better-auth.BEphVDyL.cjs +251 -0
- package/dist/shared/better-auth.BG6vHVNT.cjs +30 -0
- package/dist/shared/better-auth.BIdFil5c.mjs +2966 -0
- package/dist/shared/better-auth.BLDOwz3i.cjs +7 -0
- package/dist/shared/better-auth.BMYo0QR-.cjs +10 -0
- package/dist/shared/better-auth.BUPPRXfK.mjs +7 -0
- package/dist/shared/better-auth.BXzrqpD0.mjs +89 -0
- package/dist/shared/better-auth.BcoSd9tC.mjs +10 -0
- package/dist/shared/better-auth.Bg6iw3ig.cjs +9 -0
- package/dist/shared/better-auth.BgkOX1Ei.cjs +36 -0
- package/dist/shared/better-auth.Bo5izWaH.cjs +351 -0
- package/dist/shared/better-auth.BopGaOCJ.mjs +1072 -0
- package/dist/shared/better-auth.BsGMIUYy.cjs +144 -0
- package/dist/shared/better-auth.BtJHz7JQ.mjs +21 -0
- package/dist/shared/better-auth.C1-vpKly.cjs +12 -0
- package/dist/shared/better-auth.C1hdVENX.cjs +7 -0
- package/dist/shared/better-auth.C24Bzw4w.mjs +174 -0
- package/dist/shared/better-auth.CDXNofOe.cjs +44 -0
- package/dist/shared/better-auth.CHh0hgk_.cjs +3007 -0
- package/dist/shared/better-auth.CHyZMcYK.cjs +190 -0
- package/dist/shared/better-auth.CKg1f8vU.cjs +1135 -0
- package/dist/shared/better-auth.CQvoVIBD.mjs +81 -0
- package/dist/shared/better-auth.CTO2AeAU.mjs +2291 -0
- package/dist/shared/better-auth.CUdxApHl.cjs +18 -0
- package/dist/shared/better-auth.CW6D9eSx.mjs +5 -0
- package/dist/shared/better-auth.CYeOI8C-.cjs +12 -0
- package/dist/shared/better-auth.CZu6g_Il.cjs +92 -0
- package/dist/shared/better-auth.C_Zl7Etp.cjs +83 -0
- package/dist/shared/better-auth.CaOSMXxP.cjs +2317 -0
- package/dist/shared/better-auth.CoFXoU5u.mjs +349 -0
- package/dist/shared/better-auth.CuZPmFi8.mjs +30 -0
- package/dist/shared/better-auth.Cytp8fGy.cjs +200 -0
- package/dist/shared/better-auth.D-2CmEwz.mjs +5 -0
- package/dist/shared/better-auth.D3mtHEZg.cjs +23 -0
- package/dist/shared/better-auth.D7syfoJW.mjs +133 -0
- package/dist/shared/better-auth.D8LeJoj0.mjs +173 -0
- package/dist/shared/better-auth.DDEbWX-S.mjs +8 -0
- package/dist/shared/better-auth.DH3YjMQH.mjs +55 -0
- package/dist/shared/better-auth.DMLPzZdQ.cjs +23 -0
- package/dist/shared/better-auth.DNqtHmvg.cjs +22 -0
- package/dist/shared/better-auth.DORkW_Ge.mjs +249 -0
- package/dist/shared/better-auth.DQI8AD7d.mjs +20 -0
- package/dist/shared/better-auth.DQRQ_nOW.cjs +1074 -0
- package/dist/shared/better-auth.DZnoWLte.cjs +175 -0
- package/dist/shared/better-auth.D_yrCdEQ.mjs +59 -0
- package/dist/shared/better-auth.DdjqxOIu.cjs +139 -0
- package/dist/shared/better-auth.Ddw8bVyV.mjs +35 -0
- package/dist/shared/better-auth.DdzSJf-n.mjs +19 -0
- package/dist/shared/better-auth.DhsGZ30Q.cjs +126 -0
- package/dist/shared/better-auth.DiSjtgs9.cjs +45 -0
- package/dist/shared/better-auth.DnER2-iT.cjs +37 -0
- package/dist/shared/better-auth.DssCybTk.cjs +64 -0
- package/dist/shared/better-auth.Duk7IG0N.mjs +34 -0
- package/dist/shared/better-auth.GpOOav9x.cjs +60 -0
- package/dist/shared/better-auth.HHZU10im.mjs +405 -0
- package/dist/shared/better-auth.OT3XFeFk.mjs +48 -0
- package/dist/shared/better-auth.YUF6P-PB.cjs +52 -0
- package/dist/shared/better-auth.YwDQhoPc.mjs +41 -0
- package/dist/shared/better-auth.am4QbDex.cjs +37 -0
- package/dist/shared/better-auth.cd8Jd_oV.mjs +197 -0
- package/dist/shared/better-auth.ffWeg50w.mjs +124 -0
- package/dist/shared/better-auth.fsvwNeUx.mjs +28 -0
- package/dist/shared/better-auth.lwzD09PV.cjs +408 -0
- package/dist/shared/better-auth.tB5eU6EY.mjs +21 -0
- package/dist/social-providers/apple.d.ts +93 -0
- package/dist/social-providers/apple.d.ts.map +1 -0
- package/dist/social-providers/discord.d.ts +101 -0
- package/dist/social-providers/discord.d.ts.map +1 -0
- package/dist/social-providers/dropbox.d.ts +44 -0
- package/dist/social-providers/dropbox.d.ts.map +1 -0
- package/dist/social-providers/facebook.d.ts +52 -0
- package/dist/social-providers/facebook.d.ts.map +1 -0
- package/dist/social-providers/github.d.ts +77 -0
- package/dist/social-providers/github.d.ts.map +1 -0
- package/dist/social-providers/gitlab.d.ts +76 -0
- package/dist/social-providers/gitlab.d.ts.map +1 -0
- package/dist/social-providers/google.d.ts +62 -0
- package/dist/social-providers/google.d.ts.map +1 -0
- package/dist/social-providers/index.cjs +1217 -0
- package/dist/social-providers/index.d.ts +477 -0
- package/dist/social-providers/index.d.ts.map +1 -0
- package/dist/social-providers/index.mjs +1195 -0
- package/dist/social-providers/linkedin.d.ts +55 -0
- package/dist/social-providers/linkedin.d.ts.map +1 -0
- package/dist/social-providers/microsoft-entra-id.d.ts +56 -0
- package/dist/social-providers/microsoft-entra-id.d.ts.map +1 -0
- package/dist/social-providers/reddit.d.ts +40 -0
- package/dist/social-providers/reddit.d.ts.map +1 -0
- package/dist/social-providers/roblox.d.ts +48 -0
- package/dist/social-providers/roblox.d.ts.map +1 -0
- package/dist/social-providers/spotify.d.ts +39 -0
- package/dist/social-providers/spotify.d.ts.map +1 -0
- package/dist/social-providers/tiktok.d.ts +145 -0
- package/dist/social-providers/tiktok.d.ts.map +1 -0
- package/dist/social-providers/twitch.d.ts +50 -0
- package/dist/social-providers/twitch.d.ts.map +1 -0
- package/dist/social-providers/twitter.d.ts +119 -0
- package/dist/social-providers/twitter.d.ts.map +1 -0
- package/dist/social-providers/vk.d.ts +59 -0
- package/dist/social-providers/vk.d.ts.map +1 -0
- package/dist/test-utils/headers.d.ts +6 -0
- package/dist/test-utils/headers.d.ts.map +1 -0
- package/dist/test-utils/test-instance.d.ts +20878 -0
- package/dist/test-utils/test-instance.d.ts.map +1 -0
- package/dist/tsconfig.declarations.tsbuildinfo +1 -0
- package/dist/types/adapter.d.ts +119 -0
- package/dist/types/adapter.d.ts.map +1 -0
- package/dist/types/api.d.ts +28 -0
- package/dist/types/api.d.ts.map +1 -0
- package/dist/types/context.d.ts +13 -0
- package/dist/types/context.d.ts.map +1 -0
- package/dist/types/helper.d.ts +32 -0
- package/dist/types/helper.d.ts.map +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/models.d.ts +35 -0
- package/dist/types/models.d.ts.map +1 -0
- package/dist/types/options.d.ts +794 -0
- package/dist/types/options.d.ts.map +1 -0
- package/dist/types/plugins.d.ts +120 -0
- package/dist/types/plugins.d.ts.map +1 -0
- package/dist/utils/boolean.d.ts +2 -0
- package/dist/utils/boolean.d.ts.map +1 -0
- package/dist/utils/callback-url.d.ts +7 -0
- package/dist/utils/callback-url.d.ts.map +1 -0
- package/dist/utils/clone.d.ts +2 -0
- package/dist/utils/clone.d.ts.map +1 -0
- package/dist/utils/constants.d.ts +2 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/date.d.ts +2 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/env.d.ts +10 -0
- package/dist/utils/env.d.ts.map +1 -0
- package/dist/utils/get-request-ip.d.ts +3 -0
- package/dist/utils/get-request-ip.d.ts.map +1 -0
- package/dist/utils/hide-metadata.d.ts +4 -0
- package/dist/utils/hide-metadata.d.ts.map +1 -0
- package/dist/utils/id.d.ts +2 -0
- package/dist/utils/id.d.ts.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/json.d.ts +2 -0
- package/dist/utils/json.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +15 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/merger.d.ts +2 -0
- package/dist/utils/merger.d.ts.map +1 -0
- package/dist/utils/middleware-response.d.ts +9 -0
- package/dist/utils/middleware-response.d.ts.map +1 -0
- package/dist/utils/misc.d.ts +2 -0
- package/dist/utils/misc.d.ts.map +1 -0
- package/dist/utils/password.d.ts +7 -0
- package/dist/utils/password.d.ts.map +1 -0
- package/dist/utils/plugin-helper.d.ts +6 -0
- package/dist/utils/plugin-helper.d.ts.map +1 -0
- package/dist/utils/shim.d.ts +4 -0
- package/dist/utils/shim.d.ts.map +1 -0
- package/dist/utils/time.d.ts +29 -0
- package/dist/utils/time.d.ts.map +1 -0
- package/dist/utils/url.d.ts +6 -0
- package/dist/utils/url.d.ts.map +1 -0
- package/dist/utils/wildcard.d.ts +46 -0
- package/dist/utils/wildcard.d.ts.map +1 -0
- package/package.json +218 -216
- package/dist/adapters/drizzle.cjs +0 -274
- package/dist/adapters/drizzle.d.cts +0 -76
- package/dist/adapters/drizzle.d.ts +0 -76
- package/dist/adapters/drizzle.js +0 -272
- package/dist/adapters/kysely.cjs +0 -24
- package/dist/adapters/kysely.d.cts +0 -68
- package/dist/adapters/kysely.d.ts +0 -68
- package/dist/adapters/kysely.js +0 -11
- package/dist/adapters/memory.cjs +0 -20
- package/dist/adapters/memory.d.cts +0 -59
- package/dist/adapters/memory.d.ts +0 -59
- package/dist/adapters/memory.js +0 -11
- package/dist/adapters/mongodb.cjs +0 -273
- package/dist/adapters/mongodb.d.cts +0 -57
- package/dist/adapters/mongodb.d.ts +0 -57
- package/dist/adapters/mongodb.js +0 -271
- package/dist/adapters/prisma.cjs +0 -244
- package/dist/adapters/prisma.d.cts +0 -65
- package/dist/adapters/prisma.d.ts +0 -65
- package/dist/adapters/prisma.js +0 -242
- package/dist/adapters/test.d.cts +0 -16
- package/dist/adapters/test.js +0 -427
- package/dist/api.cjs +0 -179
- package/dist/api.d.cts +0 -8
- package/dist/api.d.ts +0 -8
- package/dist/api.js +0 -14
- package/dist/auth-B79moDlX.d.cts +0 -17513
- package/dist/auth-Kwau5-bb.d.ts +0 -17513
- package/dist/chunk-24JP47BJ.cjs +0 -514
- package/dist/chunk-2HPSCSV7.cjs +0 -8
- package/dist/chunk-2NRCW4MM.cjs +0 -276
- package/dist/chunk-36B4OZI7.cjs +0 -108
- package/dist/chunk-3XTQSPPA.js +0 -6
- package/dist/chunk-3YL6DMDX.cjs +0 -579
- package/dist/chunk-42QFDXM5.js +0 -168
- package/dist/chunk-4O3PNNJ5.js +0 -22
- package/dist/chunk-4YAPAKAB.cjs +0 -73
- package/dist/chunk-53IPO2PJ.js +0 -22
- package/dist/chunk-5ILVRGRP.cjs +0 -1066
- package/dist/chunk-6AFMN526.cjs +0 -45
- package/dist/chunk-6YBMZW4E.js +0 -274
- package/dist/chunk-74IS7WMH.js +0 -89
- package/dist/chunk-7KKMYVNZ.js +0 -42
- package/dist/chunk-7T4E7I7S.cjs +0 -1084
- package/dist/chunk-BAFWUSRZ.cjs +0 -277
- package/dist/chunk-BVPUB4ND.cjs +0 -2225
- package/dist/chunk-CAT6XI46.js +0 -275
- package/dist/chunk-CCKQSGIR.cjs +0 -8
- package/dist/chunk-CDEGAT2X.cjs +0 -38
- package/dist/chunk-CF7NIEGH.cjs +0 -38
- package/dist/chunk-COHCMRZR.cjs +0 -448
- package/dist/chunk-CWVCOYJV.cjs +0 -28
- package/dist/chunk-DINP2XPU.js +0 -677
- package/dist/chunk-DMXPQ4IV.js +0 -98
- package/dist/chunk-EHFDU6IF.cjs +0 -45
- package/dist/chunk-ENJOFIER.js +0 -212
- package/dist/chunk-EORFSCDW.cjs +0 -91
- package/dist/chunk-FDBO3FVG.cjs +0 -1135
- package/dist/chunk-FURNA6HY.js +0 -6
- package/dist/chunk-GBOJH32L.cjs +0 -82
- package/dist/chunk-GEW4G4Y7.cjs +0 -1007
- package/dist/chunk-GYDUPG7X.js +0 -36
- package/dist/chunk-H74YRRNV.cjs +0 -92
- package/dist/chunk-HC2USFT2.cjs +0 -214
- package/dist/chunk-HVHN3Y2L.js +0 -126
- package/dist/chunk-IGDRZOHV.js +0 -134
- package/dist/chunk-IX6WCVID.cjs +0 -1971
- package/dist/chunk-J6F3TU5V.js +0 -1082
- package/dist/chunk-JEYF2ARX.js +0 -21
- package/dist/chunk-JOH6QBAP.cjs +0 -362
- package/dist/chunk-JUPDDQC4.cjs +0 -23
- package/dist/chunk-KEQSKZI2.js +0 -239
- package/dist/chunk-KIQWU6Z4.cjs +0 -278
- package/dist/chunk-KLDFBLYL.js +0 -85
- package/dist/chunk-LJJIONSX.cjs +0 -45
- package/dist/chunk-LKPN4Y5Z.js +0 -31
- package/dist/chunk-M5XMVH2M.js +0 -1114
- package/dist/chunk-NC57F4RJ.cjs +0 -3703
- package/dist/chunk-NSBXOWUM.js +0 -1064
- package/dist/chunk-NTBGYF7H.cjs +0 -241
- package/dist/chunk-OA7Z7IZT.cjs +0 -24
- package/dist/chunk-PEZRSDZS.cjs +0 -23
- package/dist/chunk-Q4E77C7B.js +0 -1005
- package/dist/chunk-Q4XYQ7DC.js +0 -156
- package/dist/chunk-QUVBQTGS.js +0 -274
- package/dist/chunk-R42K7GPF.js +0 -132
- package/dist/chunk-REY76NPL.cjs +0 -136
- package/dist/chunk-RJUH2LYP.js +0 -577
- package/dist/chunk-RXJOBUFI.js +0 -43
- package/dist/chunk-S5UORXJH.cjs +0 -65
- package/dist/chunk-SENLFMI2.js +0 -142
- package/dist/chunk-SVC7H7K4.cjs +0 -138
- package/dist/chunk-TBGNSOTL.js +0 -1955
- package/dist/chunk-THOAPE5K.js +0 -70
- package/dist/chunk-TJWK22XS.js +0 -446
- package/dist/chunk-TOKZL3ZI.js +0 -42
- package/dist/chunk-TOSIKQ2I.cjs +0 -144
- package/dist/chunk-TQQSPPNA.js +0 -41
- package/dist/chunk-U4I57HJ4.cjs +0 -129
- package/dist/chunk-UNWCXKMP.js +0 -20
- package/dist/chunk-UQC2FUXC.cjs +0 -224
- package/dist/chunk-VOUL66AG.js +0 -512
- package/dist/chunk-VXYIYABQ.cjs +0 -46
- package/dist/chunk-WBFH3ZYN.js +0 -352
- package/dist/chunk-WMXBA6LX.js +0 -11
- package/dist/chunk-WVVF7K6P.js +0 -79
- package/dist/chunk-WZ6OIVJK.js +0 -207
- package/dist/chunk-X3J3BWQR.js +0 -2223
- package/dist/chunk-XDMVO6BH.cjs +0 -170
- package/dist/chunk-XFCIANZX.js +0 -60
- package/dist/chunk-XRF73UDB.js +0 -3654
- package/dist/chunk-Y64QYLA4.cjs +0 -158
- package/dist/chunk-Y6QT4U6Z.cjs +0 -679
- package/dist/chunk-ZBKCS3KP.cjs +0 -13
- package/dist/client/plugins.cjs +0 -572
- package/dist/client/plugins.d.cts +0 -758
- package/dist/client/plugins.d.ts +0 -758
- package/dist/client/plugins.js +0 -549
- package/dist/client.cjs +0 -24
- package/dist/client.d.cts +0 -138
- package/dist/client.d.ts +0 -138
- package/dist/client.js +0 -7
- package/dist/cookies.cjs +0 -46
- package/dist/cookies.d.cts +0 -8
- package/dist/cookies.d.ts +0 -8
- package/dist/cookies.js +0 -5
- package/dist/crypto.cjs +0 -42
- package/dist/crypto.d.cts +0 -30
- package/dist/crypto.d.ts +0 -30
- package/dist/crypto.js +0 -1
- package/dist/db.cjs +0 -120
- package/dist/db.d.cts +0 -56
- package/dist/db.d.ts +0 -56
- package/dist/db.js +0 -11
- package/dist/helper-DFk-nDjL.d.cts +0 -29
- package/dist/helper-DFk-nDjL.d.ts +0 -29
- package/dist/hide-metadata-DEHJp1rk.d.cts +0 -5
- package/dist/hide-metadata-DEHJp1rk.d.ts +0 -5
- package/dist/index-BKfxieJM.d.ts +0 -1500
- package/dist/index-Bo3yOPaO.d.cts +0 -1500
- package/dist/index-CpB6VxxI.d.ts +0 -5116
- package/dist/index-UqpJkXzo.d.cts +0 -5116
- package/dist/index.d.cts +0 -26
- package/dist/index.js +0 -217
- package/dist/next-js.cjs +0 -100
- package/dist/next-js.d.cts +0 -34
- package/dist/next-js.d.ts +0 -34
- package/dist/next-js.js +0 -97
- package/dist/node.cjs +0 -24
- package/dist/node.d.cts +0 -17
- package/dist/node.d.ts +0 -17
- package/dist/node.js +0 -21
- package/dist/oauth2.cjs +0 -37
- package/dist/oauth2.d.cts +0 -39
- package/dist/oauth2.d.ts +0 -39
- package/dist/oauth2.js +0 -4
- package/dist/plugins/access.cjs +0 -15
- package/dist/plugins/access.d.cts +0 -42
- package/dist/plugins/access.d.ts +0 -42
- package/dist/plugins/access.js +0 -2
- package/dist/plugins/admin/access.cjs +0 -28
- package/dist/plugins/admin/access.d.cts +0 -116
- package/dist/plugins/admin/access.d.ts +0 -116
- package/dist/plugins/admin/access.js +0 -3
- package/dist/plugins/admin.cjs +0 -28
- package/dist/plugins/admin.d.cts +0 -1398
- package/dist/plugins/admin.d.ts +0 -1398
- package/dist/plugins/admin.js +0 -19
- package/dist/plugins/anonymous.cjs +0 -24
- package/dist/plugins/anonymous.d.cts +0 -160
- package/dist/plugins/anonymous.d.ts +0 -160
- package/dist/plugins/anonymous.js +0 -15
- package/dist/plugins/bearer.cjs +0 -24
- package/dist/plugins/bearer.d.cts +0 -57
- package/dist/plugins/bearer.d.ts +0 -57
- package/dist/plugins/bearer.js +0 -15
- package/dist/plugins/captcha.cjs +0 -10
- package/dist/plugins/captcha.d.cts +0 -21
- package/dist/plugins/captcha.d.ts +0 -21
- package/dist/plugins/captcha.js +0 -1
- package/dist/plugins/custom-session.cjs +0 -24
- package/dist/plugins/custom-session.d.cts +0 -66
- package/dist/plugins/custom-session.d.ts +0 -66
- package/dist/plugins/custom-session.js +0 -15
- package/dist/plugins/email-otp.cjs +0 -25
- package/dist/plugins/email-otp.d.cts +0 -615
- package/dist/plugins/email-otp.d.ts +0 -615
- package/dist/plugins/email-otp.js +0 -16
- package/dist/plugins/generic-oauth.cjs +0 -24
- package/dist/plugins/generic-oauth.d.cts +0 -356
- package/dist/plugins/generic-oauth.d.ts +0 -356
- package/dist/plugins/generic-oauth.js +0 -15
- package/dist/plugins/jwt.cjs +0 -24
- package/dist/plugins/jwt.d.cts +0 -303
- package/dist/plugins/jwt.d.ts +0 -303
- package/dist/plugins/jwt.js +0 -15
- package/dist/plugins/magic-link.cjs +0 -24
- package/dist/plugins/magic-link.d.cts +0 -220
- package/dist/plugins/magic-link.d.ts +0 -220
- package/dist/plugins/magic-link.js +0 -15
- package/dist/plugins/multi-session.cjs +0 -24
- package/dist/plugins/multi-session.d.cts +0 -265
- package/dist/plugins/multi-session.d.ts +0 -265
- package/dist/plugins/multi-session.js +0 -15
- package/dist/plugins/oidc-provider.cjs +0 -24
- package/dist/plugins/oidc-provider.d.cts +0 -977
- package/dist/plugins/oidc-provider.d.ts +0 -977
- package/dist/plugins/oidc-provider.js +0 -15
- package/dist/plugins/one-tap.cjs +0 -24
- package/dist/plugins/one-tap.d.cts +0 -116
- package/dist/plugins/one-tap.d.ts +0 -116
- package/dist/plugins/one-tap.js +0 -15
- package/dist/plugins/open-api.cjs +0 -26
- package/dist/plugins/open-api.d.cts +0 -260
- package/dist/plugins/open-api.d.ts +0 -260
- package/dist/plugins/open-api.js +0 -17
- package/dist/plugins/organization.cjs +0 -27
- package/dist/plugins/organization.d.cts +0 -10
- package/dist/plugins/organization.d.ts +0 -10
- package/dist/plugins/organization.js +0 -18
- package/dist/plugins/passkey.cjs +0 -799
- package/dist/plugins/passkey.d.cts +0 -833
- package/dist/plugins/passkey.d.ts +0 -833
- package/dist/plugins/passkey.js +0 -797
- package/dist/plugins/phone-number.cjs +0 -24
- package/dist/plugins/phone-number.d.cts +0 -483
- package/dist/plugins/phone-number.d.ts +0 -483
- package/dist/plugins/phone-number.js +0 -15
- package/dist/plugins/sso.cjs +0 -566
- package/dist/plugins/sso.d.cts +0 -496
- package/dist/plugins/sso.d.ts +0 -496
- package/dist/plugins/sso.js +0 -564
- package/dist/plugins/two-factor.cjs +0 -31
- package/dist/plugins/two-factor.d.cts +0 -1394
- package/dist/plugins/two-factor.d.ts +0 -1394
- package/dist/plugins/two-factor.js +0 -18
- package/dist/plugins/username.cjs +0 -25
- package/dist/plugins/username.d.cts +0 -194
- package/dist/plugins/username.d.ts +0 -194
- package/dist/plugins/username.js +0 -16
- package/dist/plugins.cjs +0 -139
- package/dist/plugins.d.cts +0 -164
- package/dist/plugins.d.ts +0 -164
- package/dist/plugins.js +0 -42
- package/dist/react.cjs +0 -64
- package/dist/react.d.cts +0 -140
- package/dist/react.d.ts +0 -140
- package/dist/react.js +0 -60
- package/dist/social.cjs +0 -93
- package/dist/social.d.cts +0 -4
- package/dist/social.d.ts +0 -4
- package/dist/social.js +0 -8
- package/dist/solid-start.cjs +0 -14
- package/dist/solid-start.d.cts +0 -12
- package/dist/solid-start.d.ts +0 -12
- package/dist/solid-start.js +0 -12
- package/dist/solid.cjs +0 -56
- package/dist/solid.d.cts +0 -115
- package/dist/solid.d.ts +0 -115
- package/dist/solid.js +0 -54
- package/dist/state-C7IUhB_Z.d.cts +0 -22
- package/dist/state-D32_8TuF.d.ts +0 -22
- package/dist/svelte-kit.cjs +0 -38
- package/dist/svelte-kit.d.cts +0 -29
- package/dist/svelte-kit.d.ts +0 -29
- package/dist/svelte-kit.js +0 -34
- package/dist/svelte.cjs +0 -40
- package/dist/svelte.d.cts +0 -120
- package/dist/svelte.d.ts +0 -120
- package/dist/svelte.js +0 -38
- package/dist/types.cjs +0 -4
- package/dist/types.d.cts +0 -137
- package/dist/types.d.ts +0 -137
- package/dist/types.js +0 -1
- package/dist/vue.cjs +0 -85
- package/dist/vue.d.cts +0 -143
- package/dist/vue.d.ts +0 -143
- package/dist/vue.js +0 -83
- /package/dist/{chunk-NIMYOIVU.cjs → types/index.cjs} +0 -0
- /package/dist/{chunk-SK6Y2YH6.js → types/index.mjs} +0 -0
package/dist/index-BKfxieJM.d.ts
DELETED
|
@@ -1,1500 +0,0 @@
|
|
|
1
|
-
import { L as LiteralString, a as Prettify } from './helper-DFk-nDjL.js';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import * as jose from 'jose';
|
|
4
|
-
|
|
5
|
-
interface OAuth2Tokens {
|
|
6
|
-
tokenType?: string;
|
|
7
|
-
accessToken?: string;
|
|
8
|
-
refreshToken?: string;
|
|
9
|
-
accessTokenExpiresAt?: Date;
|
|
10
|
-
refreshTokenExpiresAt?: Date;
|
|
11
|
-
scopes?: string[];
|
|
12
|
-
idToken?: string;
|
|
13
|
-
}
|
|
14
|
-
interface OAuthProvider<T extends Record<string, any> = Record<string, any>> {
|
|
15
|
-
id: LiteralString;
|
|
16
|
-
createAuthorizationURL: (data: {
|
|
17
|
-
state: string;
|
|
18
|
-
codeVerifier: string;
|
|
19
|
-
scopes?: string[];
|
|
20
|
-
redirectURI: string;
|
|
21
|
-
}) => Promise<URL> | URL;
|
|
22
|
-
name: string;
|
|
23
|
-
validateAuthorizationCode: (data: {
|
|
24
|
-
code: string;
|
|
25
|
-
redirectURI: string;
|
|
26
|
-
codeVerifier?: string;
|
|
27
|
-
deviceId?: string;
|
|
28
|
-
}) => Promise<OAuth2Tokens>;
|
|
29
|
-
getUserInfo: (token: OAuth2Tokens) => Promise<{
|
|
30
|
-
user: {
|
|
31
|
-
id: string;
|
|
32
|
-
name?: string;
|
|
33
|
-
email?: string | null;
|
|
34
|
-
image?: string;
|
|
35
|
-
emailVerified: boolean;
|
|
36
|
-
};
|
|
37
|
-
data: T;
|
|
38
|
-
} | null>;
|
|
39
|
-
refreshAccessToken?: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
40
|
-
revokeToken?: (token: string) => Promise<void>;
|
|
41
|
-
verifyIdToken?: (token: string, nonce?: string) => Promise<boolean>;
|
|
42
|
-
}
|
|
43
|
-
type ProviderOptions<Profile extends Record<string, any> = any> = {
|
|
44
|
-
/**
|
|
45
|
-
* The client ID of your application
|
|
46
|
-
*/
|
|
47
|
-
clientId: string;
|
|
48
|
-
/**
|
|
49
|
-
* The client secret of your application
|
|
50
|
-
*/
|
|
51
|
-
clientSecret: string;
|
|
52
|
-
/**
|
|
53
|
-
* The scopes you want to request from the provider
|
|
54
|
-
*/
|
|
55
|
-
scope?: string[];
|
|
56
|
-
/**
|
|
57
|
-
* Remove default scopes of the provider
|
|
58
|
-
*/
|
|
59
|
-
disableDefaultScope?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* The redirect URL for your application. This is where the provider will
|
|
62
|
-
* redirect the user after the sign in process. Make sure this URL is
|
|
63
|
-
* whitelisted in the provider's dashboard.
|
|
64
|
-
*/
|
|
65
|
-
redirectURI?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Disable provider from allowing users to sign in
|
|
68
|
-
* with this provider with an id token sent from the
|
|
69
|
-
* client.
|
|
70
|
-
*/
|
|
71
|
-
disableIdTokenSignIn?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* verifyIdToken function to verify the id token
|
|
74
|
-
*/
|
|
75
|
-
verifyIdToken?: (token: string, nonce?: string) => Promise<boolean>;
|
|
76
|
-
/**
|
|
77
|
-
* Custom function to get user info from the provider
|
|
78
|
-
*/
|
|
79
|
-
getUserInfo?: (token: OAuth2Tokens) => Promise<{
|
|
80
|
-
user: {
|
|
81
|
-
id: string;
|
|
82
|
-
name?: string;
|
|
83
|
-
email?: string | null;
|
|
84
|
-
image?: string;
|
|
85
|
-
emailVerified: boolean;
|
|
86
|
-
[key: string]: any;
|
|
87
|
-
};
|
|
88
|
-
data: any;
|
|
89
|
-
}>;
|
|
90
|
-
/**
|
|
91
|
-
* Custom function to map the provider profile to a
|
|
92
|
-
* user.
|
|
93
|
-
*/
|
|
94
|
-
mapProfileToUser?: (profile: Profile) => {
|
|
95
|
-
id?: string;
|
|
96
|
-
name?: string;
|
|
97
|
-
email?: string | null;
|
|
98
|
-
image?: string;
|
|
99
|
-
emailVerified?: boolean;
|
|
100
|
-
[key: string]: any;
|
|
101
|
-
} | Promise<{
|
|
102
|
-
id?: string;
|
|
103
|
-
name?: string;
|
|
104
|
-
email?: string | null;
|
|
105
|
-
image?: string;
|
|
106
|
-
emailVerified?: boolean;
|
|
107
|
-
[key: string]: any;
|
|
108
|
-
}>;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
interface VkProfile {
|
|
112
|
-
user: {
|
|
113
|
-
user_id: string;
|
|
114
|
-
first_name: string;
|
|
115
|
-
last_name: string;
|
|
116
|
-
email?: string;
|
|
117
|
-
phone?: number;
|
|
118
|
-
avatar?: string;
|
|
119
|
-
sex?: number;
|
|
120
|
-
verified?: boolean;
|
|
121
|
-
birthday: string;
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
declare const enum LANG {
|
|
125
|
-
RUS = 0,
|
|
126
|
-
UKR = 1,
|
|
127
|
-
ENG = 3,
|
|
128
|
-
SPA = 4,
|
|
129
|
-
GERMAN = 6,
|
|
130
|
-
POL = 15,
|
|
131
|
-
FRA = 16,
|
|
132
|
-
TURKEY = 82
|
|
133
|
-
}
|
|
134
|
-
interface VkOption extends ProviderOptions {
|
|
135
|
-
lang_id?: LANG;
|
|
136
|
-
scheme?: "light" | "dark";
|
|
137
|
-
}
|
|
138
|
-
declare const vk: (options: VkOption) => {
|
|
139
|
-
id: "vk";
|
|
140
|
-
name: string;
|
|
141
|
-
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
142
|
-
state: string;
|
|
143
|
-
codeVerifier: string;
|
|
144
|
-
scopes?: string[];
|
|
145
|
-
redirectURI: string;
|
|
146
|
-
}): Promise<URL>;
|
|
147
|
-
validateAuthorizationCode: ({ code, codeVerifier, redirectURI, deviceId, }: {
|
|
148
|
-
code: string;
|
|
149
|
-
redirectURI: string;
|
|
150
|
-
codeVerifier?: string;
|
|
151
|
-
deviceId?: string;
|
|
152
|
-
}) => Promise<OAuth2Tokens>;
|
|
153
|
-
getUserInfo(data: OAuth2Tokens): Promise<{
|
|
154
|
-
user: {
|
|
155
|
-
id: string;
|
|
156
|
-
first_name: string;
|
|
157
|
-
last_name: string;
|
|
158
|
-
email: string;
|
|
159
|
-
image: string | undefined;
|
|
160
|
-
/** @note VK does not provide emailVerified*/
|
|
161
|
-
emailVerified: boolean;
|
|
162
|
-
birthday: string;
|
|
163
|
-
sex: number | undefined;
|
|
164
|
-
};
|
|
165
|
-
data: VkProfile;
|
|
166
|
-
} | null>;
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
interface RobloxProfile extends Record<string, any> {
|
|
170
|
-
/** the user's id */
|
|
171
|
-
sub: string;
|
|
172
|
-
/** the user's username */
|
|
173
|
-
preferred_username: string;
|
|
174
|
-
/** the user's display name, will return the same value as the preffered_username if not set */
|
|
175
|
-
nickname: string;
|
|
176
|
-
/** the user's display name, again, will return the same value as the preffered_username if not set */
|
|
177
|
-
name: string;
|
|
178
|
-
/** the account creation date as a unix timestamp in seconds */
|
|
179
|
-
created_at: number;
|
|
180
|
-
/** the user's profile url */
|
|
181
|
-
profile: string;
|
|
182
|
-
/** the user's avatar url */
|
|
183
|
-
picture: string;
|
|
184
|
-
}
|
|
185
|
-
interface RobloxOptions extends ProviderOptions<RobloxProfile> {
|
|
186
|
-
prompt?: "none" | "consent" | "login" | "select_account" | "select_account+consent";
|
|
187
|
-
}
|
|
188
|
-
declare const roblox: (options: RobloxOptions) => {
|
|
189
|
-
id: "roblox";
|
|
190
|
-
name: string;
|
|
191
|
-
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
192
|
-
state: string;
|
|
193
|
-
codeVerifier: string;
|
|
194
|
-
scopes?: string[];
|
|
195
|
-
redirectURI: string;
|
|
196
|
-
}): URL;
|
|
197
|
-
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
198
|
-
code: string;
|
|
199
|
-
redirectURI: string;
|
|
200
|
-
codeVerifier?: string;
|
|
201
|
-
deviceId?: string;
|
|
202
|
-
}) => Promise<OAuth2Tokens>;
|
|
203
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
204
|
-
user: {
|
|
205
|
-
id: string;
|
|
206
|
-
name?: string;
|
|
207
|
-
email?: string | null;
|
|
208
|
-
image?: string;
|
|
209
|
-
emailVerified: boolean;
|
|
210
|
-
[key: string]: any;
|
|
211
|
-
};
|
|
212
|
-
data: any;
|
|
213
|
-
} | null>;
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
interface RedditProfile {
|
|
217
|
-
id: string;
|
|
218
|
-
name: string;
|
|
219
|
-
icon_img: string | null;
|
|
220
|
-
has_verified_email: boolean;
|
|
221
|
-
oauth_client_id: string;
|
|
222
|
-
verified: boolean;
|
|
223
|
-
}
|
|
224
|
-
interface RedditOptions extends ProviderOptions<RedditProfile> {
|
|
225
|
-
duration?: string;
|
|
226
|
-
}
|
|
227
|
-
declare const reddit: (options: RedditOptions) => {
|
|
228
|
-
id: "reddit";
|
|
229
|
-
name: string;
|
|
230
|
-
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
231
|
-
state: string;
|
|
232
|
-
codeVerifier: string;
|
|
233
|
-
scopes?: string[];
|
|
234
|
-
redirectURI: string;
|
|
235
|
-
}): Promise<URL>;
|
|
236
|
-
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
237
|
-
code: string;
|
|
238
|
-
redirectURI: string;
|
|
239
|
-
codeVerifier?: string;
|
|
240
|
-
deviceId?: string;
|
|
241
|
-
}) => Promise<OAuth2Tokens>;
|
|
242
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
243
|
-
user: {
|
|
244
|
-
id: string;
|
|
245
|
-
name?: string;
|
|
246
|
-
email?: string | null;
|
|
247
|
-
image?: string;
|
|
248
|
-
emailVerified: boolean;
|
|
249
|
-
[key: string]: any;
|
|
250
|
-
};
|
|
251
|
-
data: any;
|
|
252
|
-
} | null>;
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
interface GitlabProfile extends Record<string, any> {
|
|
256
|
-
id: number;
|
|
257
|
-
username: string;
|
|
258
|
-
email: string;
|
|
259
|
-
name: string;
|
|
260
|
-
state: string;
|
|
261
|
-
avatar_url: string;
|
|
262
|
-
web_url: string;
|
|
263
|
-
created_at: string;
|
|
264
|
-
bio: string;
|
|
265
|
-
location?: string;
|
|
266
|
-
public_email: string;
|
|
267
|
-
skype: string;
|
|
268
|
-
linkedin: string;
|
|
269
|
-
twitter: string;
|
|
270
|
-
website_url: string;
|
|
271
|
-
organization: string;
|
|
272
|
-
job_title: string;
|
|
273
|
-
pronouns: string;
|
|
274
|
-
bot: boolean;
|
|
275
|
-
work_information?: string;
|
|
276
|
-
followers: number;
|
|
277
|
-
following: number;
|
|
278
|
-
local_time: string;
|
|
279
|
-
last_sign_in_at: string;
|
|
280
|
-
confirmed_at: string;
|
|
281
|
-
theme_id: number;
|
|
282
|
-
last_activity_on: string;
|
|
283
|
-
color_scheme_id: number;
|
|
284
|
-
projects_limit: number;
|
|
285
|
-
current_sign_in_at: string;
|
|
286
|
-
identities: Array<{
|
|
287
|
-
provider: string;
|
|
288
|
-
extern_uid: string;
|
|
289
|
-
}>;
|
|
290
|
-
can_create_group: boolean;
|
|
291
|
-
can_create_project: boolean;
|
|
292
|
-
two_factor_enabled: boolean;
|
|
293
|
-
external: boolean;
|
|
294
|
-
private_profile: boolean;
|
|
295
|
-
commit_email: string;
|
|
296
|
-
shared_runners_minutes_limit: number;
|
|
297
|
-
extra_shared_runners_minutes_limit: number;
|
|
298
|
-
}
|
|
299
|
-
interface GitlabOptions extends ProviderOptions<GitlabProfile> {
|
|
300
|
-
issuer?: string;
|
|
301
|
-
}
|
|
302
|
-
declare const gitlab: (options: GitlabOptions) => {
|
|
303
|
-
id: "gitlab";
|
|
304
|
-
name: string;
|
|
305
|
-
createAuthorizationURL: ({ state, scopes, codeVerifier, redirectURI, }: {
|
|
306
|
-
state: string;
|
|
307
|
-
codeVerifier: string;
|
|
308
|
-
scopes?: string[];
|
|
309
|
-
redirectURI: string;
|
|
310
|
-
}) => Promise<URL>;
|
|
311
|
-
validateAuthorizationCode: ({ code, redirectURI, codeVerifier }: {
|
|
312
|
-
code: string;
|
|
313
|
-
redirectURI: string;
|
|
314
|
-
codeVerifier?: string;
|
|
315
|
-
deviceId?: string;
|
|
316
|
-
}) => Promise<OAuth2Tokens>;
|
|
317
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
318
|
-
user: {
|
|
319
|
-
id: string;
|
|
320
|
-
name?: string;
|
|
321
|
-
email?: string | null;
|
|
322
|
-
image?: string;
|
|
323
|
-
emailVerified: boolean;
|
|
324
|
-
[key: string]: any;
|
|
325
|
-
};
|
|
326
|
-
data: any;
|
|
327
|
-
} | null>;
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
interface LinkedInProfile {
|
|
331
|
-
sub: string;
|
|
332
|
-
name: string;
|
|
333
|
-
given_name: string;
|
|
334
|
-
family_name: string;
|
|
335
|
-
picture: string;
|
|
336
|
-
locale: {
|
|
337
|
-
country: string;
|
|
338
|
-
language: string;
|
|
339
|
-
};
|
|
340
|
-
email: string;
|
|
341
|
-
email_verified: boolean;
|
|
342
|
-
}
|
|
343
|
-
interface LinkedInOptions extends ProviderOptions<LinkedInProfile> {
|
|
344
|
-
}
|
|
345
|
-
declare const linkedin: (options: LinkedInOptions) => {
|
|
346
|
-
id: "linkedin";
|
|
347
|
-
name: string;
|
|
348
|
-
createAuthorizationURL: ({ state, scopes, redirectURI }: {
|
|
349
|
-
state: string;
|
|
350
|
-
codeVerifier: string;
|
|
351
|
-
scopes?: string[];
|
|
352
|
-
redirectURI: string;
|
|
353
|
-
}) => Promise<URL>;
|
|
354
|
-
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
355
|
-
code: string;
|
|
356
|
-
redirectURI: string;
|
|
357
|
-
codeVerifier?: string;
|
|
358
|
-
deviceId?: string;
|
|
359
|
-
}) => Promise<OAuth2Tokens>;
|
|
360
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
361
|
-
user: {
|
|
362
|
-
id: string;
|
|
363
|
-
name: string;
|
|
364
|
-
email: string;
|
|
365
|
-
emailVerified: boolean;
|
|
366
|
-
image: string;
|
|
367
|
-
} | {
|
|
368
|
-
id: string;
|
|
369
|
-
name: string;
|
|
370
|
-
email: string | null;
|
|
371
|
-
image: string;
|
|
372
|
-
emailVerified: boolean;
|
|
373
|
-
} | {
|
|
374
|
-
id: string;
|
|
375
|
-
name: string;
|
|
376
|
-
email: string | null;
|
|
377
|
-
image: string;
|
|
378
|
-
emailVerified: boolean;
|
|
379
|
-
};
|
|
380
|
-
data: LinkedInProfile;
|
|
381
|
-
} | null>;
|
|
382
|
-
};
|
|
383
|
-
|
|
384
|
-
interface DropboxProfile {
|
|
385
|
-
account_id: string;
|
|
386
|
-
name: {
|
|
387
|
-
given_name: string;
|
|
388
|
-
surname: string;
|
|
389
|
-
familiar_name: string;
|
|
390
|
-
display_name: string;
|
|
391
|
-
abbreviated_name: string;
|
|
392
|
-
};
|
|
393
|
-
email: string;
|
|
394
|
-
email_verified: boolean;
|
|
395
|
-
profile_photo_url: string;
|
|
396
|
-
}
|
|
397
|
-
interface DropboxOptions extends ProviderOptions<DropboxProfile> {
|
|
398
|
-
}
|
|
399
|
-
declare const dropbox: (options: DropboxOptions) => {
|
|
400
|
-
id: "dropbox";
|
|
401
|
-
name: string;
|
|
402
|
-
createAuthorizationURL: ({ state, scopes, codeVerifier, redirectURI, }: {
|
|
403
|
-
state: string;
|
|
404
|
-
codeVerifier: string;
|
|
405
|
-
scopes?: string[];
|
|
406
|
-
redirectURI: string;
|
|
407
|
-
}) => Promise<URL>;
|
|
408
|
-
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
409
|
-
code: string;
|
|
410
|
-
redirectURI: string;
|
|
411
|
-
codeVerifier?: string;
|
|
412
|
-
deviceId?: string;
|
|
413
|
-
}) => Promise<OAuth2Tokens>;
|
|
414
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
415
|
-
user: {
|
|
416
|
-
id: string;
|
|
417
|
-
name?: string;
|
|
418
|
-
email?: string | null;
|
|
419
|
-
image?: string;
|
|
420
|
-
emailVerified: boolean;
|
|
421
|
-
[key: string]: any;
|
|
422
|
-
};
|
|
423
|
-
data: any;
|
|
424
|
-
} | null>;
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
interface TwitterProfile {
|
|
428
|
-
data: {
|
|
429
|
-
/**
|
|
430
|
-
* Unique identifier of this user. This is returned as a string in order to avoid complications with languages and tools
|
|
431
|
-
* that cannot handle large integers.
|
|
432
|
-
*/
|
|
433
|
-
id: string;
|
|
434
|
-
/** The friendly name of this user, as shown on their profile. */
|
|
435
|
-
name: string;
|
|
436
|
-
/** @note Email is currently unsupported by Twitter. */
|
|
437
|
-
email?: string;
|
|
438
|
-
/** The Twitter handle (screen name) of this user. */
|
|
439
|
-
username: string;
|
|
440
|
-
/**
|
|
441
|
-
* The location specified in the user's profile, if the user provided one.
|
|
442
|
-
* As this is a freeform value, it may not indicate a valid location, but it may be fuzzily evaluated when performing searches with location queries.
|
|
443
|
-
*
|
|
444
|
-
* To return this field, add `user.fields=location` in the authorization request's query parameter.
|
|
445
|
-
*/
|
|
446
|
-
location?: string;
|
|
447
|
-
/**
|
|
448
|
-
* This object and its children fields contain details about text that has a special meaning in the user's description.
|
|
449
|
-
*
|
|
450
|
-
*To return this field, add `user.fields=entities` in the authorization request's query parameter.
|
|
451
|
-
*/
|
|
452
|
-
entities?: {
|
|
453
|
-
/** Contains details about the user's profile website. */
|
|
454
|
-
url: {
|
|
455
|
-
/** Contains details about the user's profile website. */
|
|
456
|
-
urls: Array<{
|
|
457
|
-
/** The start position (zero-based) of the recognized user's profile website. All start indices are inclusive. */
|
|
458
|
-
start: number;
|
|
459
|
-
/** The end position (zero-based) of the recognized user's profile website. This end index is exclusive. */
|
|
460
|
-
end: number;
|
|
461
|
-
/** The URL in the format entered by the user. */
|
|
462
|
-
url: string;
|
|
463
|
-
/** The fully resolved URL. */
|
|
464
|
-
expanded_url: string;
|
|
465
|
-
/** The URL as displayed in the user's profile. */
|
|
466
|
-
display_url: string;
|
|
467
|
-
}>;
|
|
468
|
-
};
|
|
469
|
-
/** Contains details about URLs, Hashtags, Cashtags, or mentions located within a user's description. */
|
|
470
|
-
description: {
|
|
471
|
-
hashtags: Array<{
|
|
472
|
-
start: number;
|
|
473
|
-
end: number;
|
|
474
|
-
tag: string;
|
|
475
|
-
}>;
|
|
476
|
-
};
|
|
477
|
-
};
|
|
478
|
-
/**
|
|
479
|
-
* Indicate if this user is a verified Twitter user.
|
|
480
|
-
*
|
|
481
|
-
* To return this field, add `user.fields=verified` in the authorization request's query parameter.
|
|
482
|
-
*/
|
|
483
|
-
verified?: boolean;
|
|
484
|
-
/**
|
|
485
|
-
* The text of this user's profile description (also known as bio), if the user provided one.
|
|
486
|
-
*
|
|
487
|
-
* To return this field, add `user.fields=description` in the authorization request's query parameter.
|
|
488
|
-
*/
|
|
489
|
-
description?: string;
|
|
490
|
-
/**
|
|
491
|
-
* The URL specified in the user's profile, if present.
|
|
492
|
-
*
|
|
493
|
-
* To return this field, add `user.fields=url` in the authorization request's query parameter.
|
|
494
|
-
*/
|
|
495
|
-
url?: string;
|
|
496
|
-
/** The URL to the profile image for this user, as shown on the user's profile. */
|
|
497
|
-
profile_image_url?: string;
|
|
498
|
-
protected?: boolean;
|
|
499
|
-
/**
|
|
500
|
-
* Unique identifier of this user's pinned Tweet.
|
|
501
|
-
*
|
|
502
|
-
* You can obtain the expanded object in `includes.tweets` by adding `expansions=pinned_tweet_id` in the authorization request's query parameter.
|
|
503
|
-
*/
|
|
504
|
-
pinned_tweet_id?: string;
|
|
505
|
-
created_at?: string;
|
|
506
|
-
};
|
|
507
|
-
includes?: {
|
|
508
|
-
tweets?: Array<{
|
|
509
|
-
id: string;
|
|
510
|
-
text: string;
|
|
511
|
-
}>;
|
|
512
|
-
};
|
|
513
|
-
[claims: string]: unknown;
|
|
514
|
-
}
|
|
515
|
-
interface TwitterOption extends ProviderOptions<TwitterProfile> {
|
|
516
|
-
}
|
|
517
|
-
declare const twitter: (options: TwitterOption) => {
|
|
518
|
-
id: "twitter";
|
|
519
|
-
name: string;
|
|
520
|
-
createAuthorizationURL(data: {
|
|
521
|
-
state: string;
|
|
522
|
-
codeVerifier: string;
|
|
523
|
-
scopes?: string[];
|
|
524
|
-
redirectURI: string;
|
|
525
|
-
}): Promise<URL>;
|
|
526
|
-
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
527
|
-
code: string;
|
|
528
|
-
redirectURI: string;
|
|
529
|
-
codeVerifier?: string;
|
|
530
|
-
deviceId?: string;
|
|
531
|
-
}) => Promise<OAuth2Tokens>;
|
|
532
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
533
|
-
user: {
|
|
534
|
-
id: string;
|
|
535
|
-
name?: string;
|
|
536
|
-
email?: string | null;
|
|
537
|
-
image?: string;
|
|
538
|
-
emailVerified: boolean;
|
|
539
|
-
[key: string]: any;
|
|
540
|
-
};
|
|
541
|
-
data: any;
|
|
542
|
-
} | null>;
|
|
543
|
-
};
|
|
544
|
-
|
|
545
|
-
interface TwitchProfile {
|
|
546
|
-
/**
|
|
547
|
-
* The sub of the user
|
|
548
|
-
*/
|
|
549
|
-
sub: string;
|
|
550
|
-
/**
|
|
551
|
-
* The preferred username of the user
|
|
552
|
-
*/
|
|
553
|
-
preferred_username: string;
|
|
554
|
-
/**
|
|
555
|
-
* The email of the user
|
|
556
|
-
*/
|
|
557
|
-
email: string;
|
|
558
|
-
/**
|
|
559
|
-
* The picture of the user
|
|
560
|
-
*/
|
|
561
|
-
picture: string;
|
|
562
|
-
}
|
|
563
|
-
interface TwitchOptions extends ProviderOptions<TwitchProfile> {
|
|
564
|
-
claims?: string[];
|
|
565
|
-
}
|
|
566
|
-
declare const twitch: (options: TwitchOptions) => {
|
|
567
|
-
id: "twitch";
|
|
568
|
-
name: string;
|
|
569
|
-
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
570
|
-
state: string;
|
|
571
|
-
codeVerifier: string;
|
|
572
|
-
scopes?: string[];
|
|
573
|
-
redirectURI: string;
|
|
574
|
-
}): Promise<URL>;
|
|
575
|
-
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
576
|
-
code: string;
|
|
577
|
-
redirectURI: string;
|
|
578
|
-
codeVerifier?: string;
|
|
579
|
-
deviceId?: string;
|
|
580
|
-
}) => Promise<OAuth2Tokens>;
|
|
581
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
582
|
-
user: {
|
|
583
|
-
id: string;
|
|
584
|
-
name?: string;
|
|
585
|
-
email?: string | null;
|
|
586
|
-
image?: string;
|
|
587
|
-
emailVerified: boolean;
|
|
588
|
-
[key: string]: any;
|
|
589
|
-
};
|
|
590
|
-
data: any;
|
|
591
|
-
} | null>;
|
|
592
|
-
};
|
|
593
|
-
|
|
594
|
-
interface SpotifyProfile {
|
|
595
|
-
id: string;
|
|
596
|
-
display_name: string;
|
|
597
|
-
email: string;
|
|
598
|
-
images: {
|
|
599
|
-
url: string;
|
|
600
|
-
}[];
|
|
601
|
-
}
|
|
602
|
-
interface SpotifyOptions extends ProviderOptions<SpotifyProfile> {
|
|
603
|
-
}
|
|
604
|
-
declare const spotify: (options: SpotifyOptions) => {
|
|
605
|
-
id: "spotify";
|
|
606
|
-
name: string;
|
|
607
|
-
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
608
|
-
state: string;
|
|
609
|
-
codeVerifier: string;
|
|
610
|
-
scopes?: string[];
|
|
611
|
-
redirectURI: string;
|
|
612
|
-
}): Promise<URL>;
|
|
613
|
-
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
614
|
-
code: string;
|
|
615
|
-
redirectURI: string;
|
|
616
|
-
codeVerifier?: string;
|
|
617
|
-
deviceId?: string;
|
|
618
|
-
}) => Promise<OAuth2Tokens>;
|
|
619
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
620
|
-
user: {
|
|
621
|
-
id: string;
|
|
622
|
-
name?: string;
|
|
623
|
-
email?: string | null;
|
|
624
|
-
image?: string;
|
|
625
|
-
emailVerified: boolean;
|
|
626
|
-
[key: string]: any;
|
|
627
|
-
};
|
|
628
|
-
data: any;
|
|
629
|
-
} | null>;
|
|
630
|
-
};
|
|
631
|
-
|
|
632
|
-
interface GoogleProfile {
|
|
633
|
-
aud: string;
|
|
634
|
-
azp: string;
|
|
635
|
-
email: string;
|
|
636
|
-
email_verified: boolean;
|
|
637
|
-
exp: number;
|
|
638
|
-
/**
|
|
639
|
-
* The family name of the user, or last name in most
|
|
640
|
-
* Western languages.
|
|
641
|
-
*/
|
|
642
|
-
family_name: string;
|
|
643
|
-
/**
|
|
644
|
-
* The given name of the user, or first name in most
|
|
645
|
-
* Western languages.
|
|
646
|
-
*/
|
|
647
|
-
given_name: string;
|
|
648
|
-
hd?: string;
|
|
649
|
-
iat: number;
|
|
650
|
-
iss: string;
|
|
651
|
-
jti?: string;
|
|
652
|
-
locale?: string;
|
|
653
|
-
name: string;
|
|
654
|
-
nbf?: number;
|
|
655
|
-
picture: string;
|
|
656
|
-
sub: string;
|
|
657
|
-
}
|
|
658
|
-
interface GoogleOptions extends ProviderOptions<GoogleProfile> {
|
|
659
|
-
accessType?: "offline" | "online";
|
|
660
|
-
prompt?: "none" | "consent" | "select_account";
|
|
661
|
-
display?: "page" | "popup" | "touch" | "wap";
|
|
662
|
-
hd?: string;
|
|
663
|
-
}
|
|
664
|
-
declare const google: (options: GoogleOptions) => {
|
|
665
|
-
id: "google";
|
|
666
|
-
name: string;
|
|
667
|
-
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
668
|
-
state: string;
|
|
669
|
-
codeVerifier: string;
|
|
670
|
-
scopes?: string[];
|
|
671
|
-
redirectURI: string;
|
|
672
|
-
}): Promise<URL>;
|
|
673
|
-
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
674
|
-
code: string;
|
|
675
|
-
redirectURI: string;
|
|
676
|
-
codeVerifier?: string;
|
|
677
|
-
deviceId?: string;
|
|
678
|
-
}) => Promise<OAuth2Tokens>;
|
|
679
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
680
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
681
|
-
user: {
|
|
682
|
-
id: string;
|
|
683
|
-
name?: string;
|
|
684
|
-
email?: string | null;
|
|
685
|
-
image?: string;
|
|
686
|
-
emailVerified: boolean;
|
|
687
|
-
[key: string]: any;
|
|
688
|
-
};
|
|
689
|
-
data: any;
|
|
690
|
-
} | null>;
|
|
691
|
-
};
|
|
692
|
-
|
|
693
|
-
interface MicrosoftEntraIDProfile extends Record<string, any> {
|
|
694
|
-
sub: string;
|
|
695
|
-
name: string;
|
|
696
|
-
email: string;
|
|
697
|
-
picture: string;
|
|
698
|
-
}
|
|
699
|
-
interface MicrosoftOptions extends ProviderOptions<MicrosoftEntraIDProfile> {
|
|
700
|
-
/**
|
|
701
|
-
* The tenant ID of the Microsoft account
|
|
702
|
-
* @default "common"
|
|
703
|
-
*/
|
|
704
|
-
tenantId?: string;
|
|
705
|
-
/**
|
|
706
|
-
* The size of the profile photo
|
|
707
|
-
* @default 48
|
|
708
|
-
*/
|
|
709
|
-
profilePhotoSize?: 48 | 64 | 96 | 120 | 240 | 360 | 432 | 504 | 648;
|
|
710
|
-
/**
|
|
711
|
-
* Disable profile photo
|
|
712
|
-
*/
|
|
713
|
-
disableProfilePhoto?: boolean;
|
|
714
|
-
/**
|
|
715
|
-
* Require user to select their account even if only one account is logged in
|
|
716
|
-
* @default false
|
|
717
|
-
*/
|
|
718
|
-
requireSelectAccount?: boolean;
|
|
719
|
-
}
|
|
720
|
-
declare const microsoft: (options: MicrosoftOptions) => {
|
|
721
|
-
id: "microsoft";
|
|
722
|
-
name: string;
|
|
723
|
-
createAuthorizationURL(data: {
|
|
724
|
-
state: string;
|
|
725
|
-
codeVerifier: string;
|
|
726
|
-
scopes?: string[];
|
|
727
|
-
redirectURI: string;
|
|
728
|
-
}): Promise<URL>;
|
|
729
|
-
validateAuthorizationCode({ code, codeVerifier, redirectURI }: {
|
|
730
|
-
code: string;
|
|
731
|
-
redirectURI: string;
|
|
732
|
-
codeVerifier?: string;
|
|
733
|
-
deviceId?: string;
|
|
734
|
-
}): Promise<OAuth2Tokens>;
|
|
735
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
736
|
-
user: {
|
|
737
|
-
id: string;
|
|
738
|
-
name?: string;
|
|
739
|
-
email?: string | null;
|
|
740
|
-
image?: string;
|
|
741
|
-
emailVerified: boolean;
|
|
742
|
-
[key: string]: any;
|
|
743
|
-
};
|
|
744
|
-
data: any;
|
|
745
|
-
} | null>;
|
|
746
|
-
};
|
|
747
|
-
|
|
748
|
-
interface GithubProfile {
|
|
749
|
-
login: string;
|
|
750
|
-
id: string;
|
|
751
|
-
node_id: string;
|
|
752
|
-
avatar_url: string;
|
|
753
|
-
gravatar_id: string;
|
|
754
|
-
url: string;
|
|
755
|
-
html_url: string;
|
|
756
|
-
followers_url: string;
|
|
757
|
-
following_url: string;
|
|
758
|
-
gists_url: string;
|
|
759
|
-
starred_url: string;
|
|
760
|
-
subscriptions_url: string;
|
|
761
|
-
organizations_url: string;
|
|
762
|
-
repos_url: string;
|
|
763
|
-
events_url: string;
|
|
764
|
-
received_events_url: string;
|
|
765
|
-
type: string;
|
|
766
|
-
site_admin: boolean;
|
|
767
|
-
name: string;
|
|
768
|
-
company: string;
|
|
769
|
-
blog: string;
|
|
770
|
-
location: string;
|
|
771
|
-
email: string;
|
|
772
|
-
hireable: boolean;
|
|
773
|
-
bio: string;
|
|
774
|
-
twitter_username: string;
|
|
775
|
-
public_repos: string;
|
|
776
|
-
public_gists: string;
|
|
777
|
-
followers: string;
|
|
778
|
-
following: string;
|
|
779
|
-
created_at: string;
|
|
780
|
-
updated_at: string;
|
|
781
|
-
private_gists: string;
|
|
782
|
-
total_private_repos: string;
|
|
783
|
-
owned_private_repos: string;
|
|
784
|
-
disk_usage: string;
|
|
785
|
-
collaborators: string;
|
|
786
|
-
two_factor_authentication: boolean;
|
|
787
|
-
plan: {
|
|
788
|
-
name: string;
|
|
789
|
-
space: string;
|
|
790
|
-
private_repos: string;
|
|
791
|
-
collaborators: string;
|
|
792
|
-
};
|
|
793
|
-
}
|
|
794
|
-
interface GithubOptions extends ProviderOptions<GithubProfile> {
|
|
795
|
-
}
|
|
796
|
-
declare const github: (options: GithubOptions) => {
|
|
797
|
-
id: "github";
|
|
798
|
-
name: string;
|
|
799
|
-
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
800
|
-
state: string;
|
|
801
|
-
codeVerifier: string;
|
|
802
|
-
scopes?: string[];
|
|
803
|
-
redirectURI: string;
|
|
804
|
-
}): Promise<URL>;
|
|
805
|
-
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
806
|
-
code: string;
|
|
807
|
-
redirectURI: string;
|
|
808
|
-
codeVerifier?: string;
|
|
809
|
-
deviceId?: string;
|
|
810
|
-
}) => Promise<OAuth2Tokens>;
|
|
811
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
812
|
-
user: {
|
|
813
|
-
id: string;
|
|
814
|
-
name?: string;
|
|
815
|
-
email?: string | null;
|
|
816
|
-
image?: string;
|
|
817
|
-
emailVerified: boolean;
|
|
818
|
-
[key: string]: any;
|
|
819
|
-
};
|
|
820
|
-
data: any;
|
|
821
|
-
} | null>;
|
|
822
|
-
};
|
|
823
|
-
|
|
824
|
-
interface FacebookProfile {
|
|
825
|
-
id: string;
|
|
826
|
-
name: string;
|
|
827
|
-
email: string;
|
|
828
|
-
email_verified: boolean;
|
|
829
|
-
picture: {
|
|
830
|
-
data: {
|
|
831
|
-
height: number;
|
|
832
|
-
is_silhouette: boolean;
|
|
833
|
-
url: string;
|
|
834
|
-
width: number;
|
|
835
|
-
};
|
|
836
|
-
};
|
|
837
|
-
}
|
|
838
|
-
interface FacebookOptions extends ProviderOptions<FacebookProfile> {
|
|
839
|
-
/**
|
|
840
|
-
* Extend list of fields to retrieve from the Facebook user profile.
|
|
841
|
-
*
|
|
842
|
-
* @default ["id", "name", "email", "picture"]
|
|
843
|
-
*/
|
|
844
|
-
fields?: string[];
|
|
845
|
-
}
|
|
846
|
-
declare const facebook: (options: FacebookOptions) => {
|
|
847
|
-
id: "facebook";
|
|
848
|
-
name: string;
|
|
849
|
-
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
850
|
-
state: string;
|
|
851
|
-
codeVerifier: string;
|
|
852
|
-
scopes?: string[];
|
|
853
|
-
redirectURI: string;
|
|
854
|
-
}): Promise<URL>;
|
|
855
|
-
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
856
|
-
code: string;
|
|
857
|
-
redirectURI: string;
|
|
858
|
-
codeVerifier?: string;
|
|
859
|
-
deviceId?: string;
|
|
860
|
-
}) => Promise<OAuth2Tokens>;
|
|
861
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
862
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
863
|
-
user: {
|
|
864
|
-
id: string;
|
|
865
|
-
name?: string;
|
|
866
|
-
email?: string | null;
|
|
867
|
-
image?: string;
|
|
868
|
-
emailVerified: boolean;
|
|
869
|
-
[key: string]: any;
|
|
870
|
-
};
|
|
871
|
-
data: any;
|
|
872
|
-
} | null>;
|
|
873
|
-
};
|
|
874
|
-
|
|
875
|
-
interface DiscordProfile extends Record<string, any> {
|
|
876
|
-
/** the user's id (i.e. the numerical snowflake) */
|
|
877
|
-
id: string;
|
|
878
|
-
/** the user's username, not unique across the platform */
|
|
879
|
-
username: string;
|
|
880
|
-
/** the user's Discord-tag */
|
|
881
|
-
discriminator: string;
|
|
882
|
-
/** the user's display name, if it is set */
|
|
883
|
-
global_name: string | null;
|
|
884
|
-
/**
|
|
885
|
-
* the user's avatar hash:
|
|
886
|
-
* https://discord.com/developers/docs/reference#image-formatting
|
|
887
|
-
*/
|
|
888
|
-
avatar: string | null;
|
|
889
|
-
/** whether the user belongs to an OAuth2 application */
|
|
890
|
-
bot?: boolean;
|
|
891
|
-
/**
|
|
892
|
-
* whether the user is an Official Discord System user (part of the urgent
|
|
893
|
-
* message system)
|
|
894
|
-
*/
|
|
895
|
-
system?: boolean;
|
|
896
|
-
/** whether the user has two factor enabled on their account */
|
|
897
|
-
mfa_enabled: boolean;
|
|
898
|
-
/**
|
|
899
|
-
* the user's banner hash:
|
|
900
|
-
* https://discord.com/developers/docs/reference#image-formatting
|
|
901
|
-
*/
|
|
902
|
-
banner: string | null;
|
|
903
|
-
/** the user's banner color encoded as an integer representation of hexadecimal color code */
|
|
904
|
-
accent_color: number | null;
|
|
905
|
-
/**
|
|
906
|
-
* the user's chosen language option:
|
|
907
|
-
* https://discord.com/developers/docs/reference#locales
|
|
908
|
-
*/
|
|
909
|
-
locale: string;
|
|
910
|
-
/** whether the email on this account has been verified */
|
|
911
|
-
verified: boolean;
|
|
912
|
-
/** the user's email */
|
|
913
|
-
email: string;
|
|
914
|
-
/**
|
|
915
|
-
* the flags on a user's account:
|
|
916
|
-
* https://discord.com/developers/docs/resources/user#user-object-user-flags
|
|
917
|
-
*/
|
|
918
|
-
flags: number;
|
|
919
|
-
/**
|
|
920
|
-
* the type of Nitro subscription on a user's account:
|
|
921
|
-
* https://discord.com/developers/docs/resources/user#user-object-premium-types
|
|
922
|
-
*/
|
|
923
|
-
premium_type: number;
|
|
924
|
-
/**
|
|
925
|
-
* the public flags on a user's account:
|
|
926
|
-
* https://discord.com/developers/docs/resources/user#user-object-user-flags
|
|
927
|
-
*/
|
|
928
|
-
public_flags: number;
|
|
929
|
-
/** undocumented field; corresponds to the user's custom nickname */
|
|
930
|
-
display_name: string | null;
|
|
931
|
-
/**
|
|
932
|
-
* undocumented field; corresponds to the Discord feature where you can e.g.
|
|
933
|
-
* put your avatar inside of an ice cube
|
|
934
|
-
*/
|
|
935
|
-
avatar_decoration: string | null;
|
|
936
|
-
/**
|
|
937
|
-
* undocumented field; corresponds to the premium feature where you can
|
|
938
|
-
* select a custom banner color
|
|
939
|
-
*/
|
|
940
|
-
banner_color: string | null;
|
|
941
|
-
/** undocumented field; the CDN URL of their profile picture */
|
|
942
|
-
image_url: string;
|
|
943
|
-
}
|
|
944
|
-
interface DiscordOptions extends ProviderOptions<DiscordProfile> {
|
|
945
|
-
prompt?: "none" | "consent";
|
|
946
|
-
}
|
|
947
|
-
declare const discord: (options: DiscordOptions) => {
|
|
948
|
-
id: "discord";
|
|
949
|
-
name: string;
|
|
950
|
-
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
951
|
-
state: string;
|
|
952
|
-
codeVerifier: string;
|
|
953
|
-
scopes?: string[];
|
|
954
|
-
redirectURI: string;
|
|
955
|
-
}): URL;
|
|
956
|
-
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
957
|
-
code: string;
|
|
958
|
-
redirectURI: string;
|
|
959
|
-
codeVerifier?: string;
|
|
960
|
-
deviceId?: string;
|
|
961
|
-
}) => Promise<OAuth2Tokens>;
|
|
962
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
963
|
-
user: {
|
|
964
|
-
id: string;
|
|
965
|
-
name?: string;
|
|
966
|
-
email?: string | null;
|
|
967
|
-
image?: string;
|
|
968
|
-
emailVerified: boolean;
|
|
969
|
-
[key: string]: any;
|
|
970
|
-
};
|
|
971
|
-
data: any;
|
|
972
|
-
} | null>;
|
|
973
|
-
};
|
|
974
|
-
|
|
975
|
-
interface AppleProfile {
|
|
976
|
-
/**
|
|
977
|
-
* The subject registered claim identifies the principal that’s the subject
|
|
978
|
-
* of the identity token. Because this token is for your app, the value is
|
|
979
|
-
* the unique identifier for the user.
|
|
980
|
-
*/
|
|
981
|
-
sub: string;
|
|
982
|
-
/**
|
|
983
|
-
* A String value representing the user's email address.
|
|
984
|
-
* The email address is either the user's real email address or the proxy
|
|
985
|
-
* address, depending on their status private email relay service.
|
|
986
|
-
*/
|
|
987
|
-
email: string;
|
|
988
|
-
/**
|
|
989
|
-
* A string or Boolean value that indicates whether the service verifies
|
|
990
|
-
* the email. The value can either be a string ("true" or "false") or a
|
|
991
|
-
* Boolean (true or false). The system may not verify email addresses for
|
|
992
|
-
* Sign in with Apple at Work & School users, and this claim is "false" or
|
|
993
|
-
* false for those users.
|
|
994
|
-
*/
|
|
995
|
-
email_verified: true | "true";
|
|
996
|
-
/**
|
|
997
|
-
* A string or Boolean value that indicates whether the email that the user
|
|
998
|
-
* shares is the proxy address. The value can either be a string ("true" or
|
|
999
|
-
* "false") or a Boolean (true or false).
|
|
1000
|
-
*/
|
|
1001
|
-
is_private_email: boolean;
|
|
1002
|
-
/**
|
|
1003
|
-
* An Integer value that indicates whether the user appears to be a real
|
|
1004
|
-
* person. Use the value of this claim to mitigate fraud. The possible
|
|
1005
|
-
* values are: 0 (or Unsupported), 1 (or Unknown), 2 (or LikelyReal). For
|
|
1006
|
-
* more information, see ASUserDetectionStatus. This claim is present only
|
|
1007
|
-
* in iOS 14 and later, macOS 11 and later, watchOS 7 and later, tvOS 14
|
|
1008
|
-
* and later. The claim isn’t present or supported for web-based apps.
|
|
1009
|
-
*/
|
|
1010
|
-
real_user_status: number;
|
|
1011
|
-
/**
|
|
1012
|
-
* The user’s full name in the format provided during the authorization
|
|
1013
|
-
* process.
|
|
1014
|
-
*/
|
|
1015
|
-
name: string;
|
|
1016
|
-
/**
|
|
1017
|
-
* The URL to the user's profile picture.
|
|
1018
|
-
*/
|
|
1019
|
-
picture: string;
|
|
1020
|
-
user?: AppleNonConformUser;
|
|
1021
|
-
}
|
|
1022
|
-
/**
|
|
1023
|
-
* This is the shape of the `user` query parameter that Apple sends the first
|
|
1024
|
-
* time the user consents to the app.
|
|
1025
|
-
* @see https://developer.apple.com/documentation/sign_in_with_apple/request_an_authorization_to_the_sign_in_with_apple_server#4066168
|
|
1026
|
-
*/
|
|
1027
|
-
interface AppleNonConformUser {
|
|
1028
|
-
name: {
|
|
1029
|
-
firstName: string;
|
|
1030
|
-
lastName: string;
|
|
1031
|
-
};
|
|
1032
|
-
email: string;
|
|
1033
|
-
}
|
|
1034
|
-
interface AppleOptions extends ProviderOptions<AppleProfile> {
|
|
1035
|
-
appBundleIdentifier?: string;
|
|
1036
|
-
}
|
|
1037
|
-
declare const apple: (options: AppleOptions) => {
|
|
1038
|
-
id: "apple";
|
|
1039
|
-
name: string;
|
|
1040
|
-
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
1041
|
-
state: string;
|
|
1042
|
-
codeVerifier: string;
|
|
1043
|
-
scopes?: string[];
|
|
1044
|
-
redirectURI: string;
|
|
1045
|
-
}): URL;
|
|
1046
|
-
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1047
|
-
code: string;
|
|
1048
|
-
redirectURI: string;
|
|
1049
|
-
codeVerifier?: string;
|
|
1050
|
-
deviceId?: string;
|
|
1051
|
-
}) => Promise<OAuth2Tokens>;
|
|
1052
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
1053
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1054
|
-
user: {
|
|
1055
|
-
id: string;
|
|
1056
|
-
name?: string;
|
|
1057
|
-
email?: string | null;
|
|
1058
|
-
image?: string;
|
|
1059
|
-
emailVerified: boolean;
|
|
1060
|
-
[key: string]: any;
|
|
1061
|
-
};
|
|
1062
|
-
data: any;
|
|
1063
|
-
} | null>;
|
|
1064
|
-
};
|
|
1065
|
-
declare const getApplePublicKey: (kid: string) => Promise<Uint8Array<ArrayBufferLike> | jose.KeyLike>;
|
|
1066
|
-
|
|
1067
|
-
declare const socialProviders: {
|
|
1068
|
-
apple: (options: AppleOptions) => {
|
|
1069
|
-
id: "apple";
|
|
1070
|
-
name: string;
|
|
1071
|
-
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
1072
|
-
state: string;
|
|
1073
|
-
codeVerifier: string;
|
|
1074
|
-
scopes?: string[];
|
|
1075
|
-
redirectURI: string;
|
|
1076
|
-
}): URL;
|
|
1077
|
-
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1078
|
-
code: string;
|
|
1079
|
-
redirectURI: string;
|
|
1080
|
-
codeVerifier?: string;
|
|
1081
|
-
deviceId?: string;
|
|
1082
|
-
}) => Promise<OAuth2Tokens>;
|
|
1083
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
1084
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1085
|
-
user: {
|
|
1086
|
-
id: string;
|
|
1087
|
-
name?: string;
|
|
1088
|
-
email?: string | null;
|
|
1089
|
-
image?: string;
|
|
1090
|
-
emailVerified: boolean;
|
|
1091
|
-
[key: string]: any;
|
|
1092
|
-
};
|
|
1093
|
-
data: any;
|
|
1094
|
-
} | null>;
|
|
1095
|
-
};
|
|
1096
|
-
discord: (options: DiscordOptions) => {
|
|
1097
|
-
id: "discord";
|
|
1098
|
-
name: string;
|
|
1099
|
-
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
1100
|
-
state: string;
|
|
1101
|
-
codeVerifier: string;
|
|
1102
|
-
scopes?: string[];
|
|
1103
|
-
redirectURI: string;
|
|
1104
|
-
}): URL;
|
|
1105
|
-
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1106
|
-
code: string;
|
|
1107
|
-
redirectURI: string;
|
|
1108
|
-
codeVerifier?: string;
|
|
1109
|
-
deviceId?: string;
|
|
1110
|
-
}) => Promise<OAuth2Tokens>;
|
|
1111
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1112
|
-
user: {
|
|
1113
|
-
id: string;
|
|
1114
|
-
name?: string;
|
|
1115
|
-
email?: string | null;
|
|
1116
|
-
image?: string;
|
|
1117
|
-
emailVerified: boolean;
|
|
1118
|
-
[key: string]: any;
|
|
1119
|
-
};
|
|
1120
|
-
data: any;
|
|
1121
|
-
} | null>;
|
|
1122
|
-
};
|
|
1123
|
-
facebook: (options: FacebookOptions) => {
|
|
1124
|
-
id: "facebook";
|
|
1125
|
-
name: string;
|
|
1126
|
-
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
1127
|
-
state: string;
|
|
1128
|
-
codeVerifier: string;
|
|
1129
|
-
scopes?: string[];
|
|
1130
|
-
redirectURI: string;
|
|
1131
|
-
}): Promise<URL>;
|
|
1132
|
-
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1133
|
-
code: string;
|
|
1134
|
-
redirectURI: string;
|
|
1135
|
-
codeVerifier?: string;
|
|
1136
|
-
deviceId?: string;
|
|
1137
|
-
}) => Promise<OAuth2Tokens>;
|
|
1138
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
1139
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1140
|
-
user: {
|
|
1141
|
-
id: string;
|
|
1142
|
-
name?: string;
|
|
1143
|
-
email?: string | null;
|
|
1144
|
-
image?: string;
|
|
1145
|
-
emailVerified: boolean;
|
|
1146
|
-
[key: string]: any;
|
|
1147
|
-
};
|
|
1148
|
-
data: any;
|
|
1149
|
-
} | null>;
|
|
1150
|
-
};
|
|
1151
|
-
github: (options: GithubOptions) => {
|
|
1152
|
-
id: "github";
|
|
1153
|
-
name: string;
|
|
1154
|
-
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
1155
|
-
state: string;
|
|
1156
|
-
codeVerifier: string;
|
|
1157
|
-
scopes?: string[];
|
|
1158
|
-
redirectURI: string;
|
|
1159
|
-
}): Promise<URL>;
|
|
1160
|
-
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1161
|
-
code: string;
|
|
1162
|
-
redirectURI: string;
|
|
1163
|
-
codeVerifier?: string;
|
|
1164
|
-
deviceId?: string;
|
|
1165
|
-
}) => Promise<OAuth2Tokens>;
|
|
1166
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1167
|
-
user: {
|
|
1168
|
-
id: string;
|
|
1169
|
-
name?: string;
|
|
1170
|
-
email?: string | null;
|
|
1171
|
-
image?: string;
|
|
1172
|
-
emailVerified: boolean;
|
|
1173
|
-
[key: string]: any;
|
|
1174
|
-
};
|
|
1175
|
-
data: any;
|
|
1176
|
-
} | null>;
|
|
1177
|
-
};
|
|
1178
|
-
microsoft: (options: MicrosoftOptions) => {
|
|
1179
|
-
id: "microsoft";
|
|
1180
|
-
name: string;
|
|
1181
|
-
createAuthorizationURL(data: {
|
|
1182
|
-
state: string;
|
|
1183
|
-
codeVerifier: string;
|
|
1184
|
-
scopes?: string[];
|
|
1185
|
-
redirectURI: string;
|
|
1186
|
-
}): Promise<URL>;
|
|
1187
|
-
validateAuthorizationCode({ code, codeVerifier, redirectURI }: {
|
|
1188
|
-
code: string;
|
|
1189
|
-
redirectURI: string;
|
|
1190
|
-
codeVerifier?: string;
|
|
1191
|
-
deviceId?: string;
|
|
1192
|
-
}): Promise<OAuth2Tokens>;
|
|
1193
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1194
|
-
user: {
|
|
1195
|
-
id: string;
|
|
1196
|
-
name?: string;
|
|
1197
|
-
email?: string | null;
|
|
1198
|
-
image?: string;
|
|
1199
|
-
emailVerified: boolean;
|
|
1200
|
-
[key: string]: any;
|
|
1201
|
-
};
|
|
1202
|
-
data: any;
|
|
1203
|
-
} | null>;
|
|
1204
|
-
};
|
|
1205
|
-
google: (options: GoogleOptions) => {
|
|
1206
|
-
id: "google";
|
|
1207
|
-
name: string;
|
|
1208
|
-
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
1209
|
-
state: string;
|
|
1210
|
-
codeVerifier: string;
|
|
1211
|
-
scopes?: string[];
|
|
1212
|
-
redirectURI: string;
|
|
1213
|
-
}): Promise<URL>;
|
|
1214
|
-
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1215
|
-
code: string;
|
|
1216
|
-
redirectURI: string;
|
|
1217
|
-
codeVerifier?: string;
|
|
1218
|
-
deviceId?: string;
|
|
1219
|
-
}) => Promise<OAuth2Tokens>;
|
|
1220
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
1221
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1222
|
-
user: {
|
|
1223
|
-
id: string;
|
|
1224
|
-
name?: string;
|
|
1225
|
-
email?: string | null;
|
|
1226
|
-
image?: string;
|
|
1227
|
-
emailVerified: boolean;
|
|
1228
|
-
[key: string]: any;
|
|
1229
|
-
};
|
|
1230
|
-
data: any;
|
|
1231
|
-
} | null>;
|
|
1232
|
-
};
|
|
1233
|
-
spotify: (options: SpotifyOptions) => {
|
|
1234
|
-
id: "spotify";
|
|
1235
|
-
name: string;
|
|
1236
|
-
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
1237
|
-
state: string;
|
|
1238
|
-
codeVerifier: string;
|
|
1239
|
-
scopes?: string[];
|
|
1240
|
-
redirectURI: string;
|
|
1241
|
-
}): Promise<URL>;
|
|
1242
|
-
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1243
|
-
code: string;
|
|
1244
|
-
redirectURI: string;
|
|
1245
|
-
codeVerifier?: string;
|
|
1246
|
-
deviceId?: string;
|
|
1247
|
-
}) => Promise<OAuth2Tokens>;
|
|
1248
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1249
|
-
user: {
|
|
1250
|
-
id: string;
|
|
1251
|
-
name?: string;
|
|
1252
|
-
email?: string | null;
|
|
1253
|
-
image?: string;
|
|
1254
|
-
emailVerified: boolean;
|
|
1255
|
-
[key: string]: any;
|
|
1256
|
-
};
|
|
1257
|
-
data: any;
|
|
1258
|
-
} | null>;
|
|
1259
|
-
};
|
|
1260
|
-
twitch: (options: TwitchOptions) => {
|
|
1261
|
-
id: "twitch";
|
|
1262
|
-
name: string;
|
|
1263
|
-
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
1264
|
-
state: string;
|
|
1265
|
-
codeVerifier: string;
|
|
1266
|
-
scopes?: string[];
|
|
1267
|
-
redirectURI: string;
|
|
1268
|
-
}): Promise<URL>;
|
|
1269
|
-
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1270
|
-
code: string;
|
|
1271
|
-
redirectURI: string;
|
|
1272
|
-
codeVerifier?: string;
|
|
1273
|
-
deviceId?: string;
|
|
1274
|
-
}) => Promise<OAuth2Tokens>;
|
|
1275
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1276
|
-
user: {
|
|
1277
|
-
id: string;
|
|
1278
|
-
name?: string;
|
|
1279
|
-
email?: string | null;
|
|
1280
|
-
image?: string;
|
|
1281
|
-
emailVerified: boolean;
|
|
1282
|
-
[key: string]: any;
|
|
1283
|
-
};
|
|
1284
|
-
data: any;
|
|
1285
|
-
} | null>;
|
|
1286
|
-
};
|
|
1287
|
-
twitter: (options: TwitterOption) => {
|
|
1288
|
-
id: "twitter";
|
|
1289
|
-
name: string;
|
|
1290
|
-
createAuthorizationURL(data: {
|
|
1291
|
-
state: string;
|
|
1292
|
-
codeVerifier: string;
|
|
1293
|
-
scopes?: string[];
|
|
1294
|
-
redirectURI: string;
|
|
1295
|
-
}): Promise<URL>;
|
|
1296
|
-
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1297
|
-
code: string;
|
|
1298
|
-
redirectURI: string;
|
|
1299
|
-
codeVerifier?: string;
|
|
1300
|
-
deviceId?: string;
|
|
1301
|
-
}) => Promise<OAuth2Tokens>;
|
|
1302
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1303
|
-
user: {
|
|
1304
|
-
id: string;
|
|
1305
|
-
name?: string;
|
|
1306
|
-
email?: string | null;
|
|
1307
|
-
image?: string;
|
|
1308
|
-
emailVerified: boolean;
|
|
1309
|
-
[key: string]: any;
|
|
1310
|
-
};
|
|
1311
|
-
data: any;
|
|
1312
|
-
} | null>;
|
|
1313
|
-
};
|
|
1314
|
-
dropbox: (options: DropboxOptions) => {
|
|
1315
|
-
id: "dropbox";
|
|
1316
|
-
name: string;
|
|
1317
|
-
createAuthorizationURL: ({ state, scopes, codeVerifier, redirectURI, }: {
|
|
1318
|
-
state: string;
|
|
1319
|
-
codeVerifier: string;
|
|
1320
|
-
scopes?: string[];
|
|
1321
|
-
redirectURI: string;
|
|
1322
|
-
}) => Promise<URL>;
|
|
1323
|
-
validateAuthorizationCode: ({ code, codeVerifier, redirectURI }: {
|
|
1324
|
-
code: string;
|
|
1325
|
-
redirectURI: string;
|
|
1326
|
-
codeVerifier?: string;
|
|
1327
|
-
deviceId?: string;
|
|
1328
|
-
}) => Promise<OAuth2Tokens>;
|
|
1329
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1330
|
-
user: {
|
|
1331
|
-
id: string;
|
|
1332
|
-
name?: string;
|
|
1333
|
-
email?: string | null;
|
|
1334
|
-
image?: string;
|
|
1335
|
-
emailVerified: boolean;
|
|
1336
|
-
[key: string]: any;
|
|
1337
|
-
};
|
|
1338
|
-
data: any;
|
|
1339
|
-
} | null>;
|
|
1340
|
-
};
|
|
1341
|
-
linkedin: (options: LinkedInOptions) => {
|
|
1342
|
-
id: "linkedin";
|
|
1343
|
-
name: string;
|
|
1344
|
-
createAuthorizationURL: ({ state, scopes, redirectURI }: {
|
|
1345
|
-
state: string;
|
|
1346
|
-
codeVerifier: string;
|
|
1347
|
-
scopes?: string[];
|
|
1348
|
-
redirectURI: string;
|
|
1349
|
-
}) => Promise<URL>;
|
|
1350
|
-
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1351
|
-
code: string;
|
|
1352
|
-
redirectURI: string;
|
|
1353
|
-
codeVerifier?: string;
|
|
1354
|
-
deviceId?: string;
|
|
1355
|
-
}) => Promise<OAuth2Tokens>;
|
|
1356
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1357
|
-
user: {
|
|
1358
|
-
id: string;
|
|
1359
|
-
name: string;
|
|
1360
|
-
email: string;
|
|
1361
|
-
emailVerified: boolean;
|
|
1362
|
-
image: string;
|
|
1363
|
-
} | {
|
|
1364
|
-
id: string;
|
|
1365
|
-
name: string;
|
|
1366
|
-
email: string | null;
|
|
1367
|
-
image: string;
|
|
1368
|
-
emailVerified: boolean;
|
|
1369
|
-
} | {
|
|
1370
|
-
id: string;
|
|
1371
|
-
name: string;
|
|
1372
|
-
email: string | null;
|
|
1373
|
-
image: string;
|
|
1374
|
-
emailVerified: boolean;
|
|
1375
|
-
};
|
|
1376
|
-
data: LinkedInProfile;
|
|
1377
|
-
} | null>;
|
|
1378
|
-
};
|
|
1379
|
-
gitlab: (options: GitlabOptions) => {
|
|
1380
|
-
id: "gitlab";
|
|
1381
|
-
name: string;
|
|
1382
|
-
createAuthorizationURL: ({ state, scopes, codeVerifier, redirectURI, }: {
|
|
1383
|
-
state: string;
|
|
1384
|
-
codeVerifier: string;
|
|
1385
|
-
scopes?: string[];
|
|
1386
|
-
redirectURI: string;
|
|
1387
|
-
}) => Promise<URL>;
|
|
1388
|
-
validateAuthorizationCode: ({ code, redirectURI, codeVerifier }: {
|
|
1389
|
-
code: string;
|
|
1390
|
-
redirectURI: string;
|
|
1391
|
-
codeVerifier?: string;
|
|
1392
|
-
deviceId?: string;
|
|
1393
|
-
}) => Promise<OAuth2Tokens>;
|
|
1394
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1395
|
-
user: {
|
|
1396
|
-
id: string;
|
|
1397
|
-
name?: string;
|
|
1398
|
-
email?: string | null;
|
|
1399
|
-
image?: string;
|
|
1400
|
-
emailVerified: boolean;
|
|
1401
|
-
[key: string]: any;
|
|
1402
|
-
};
|
|
1403
|
-
data: any;
|
|
1404
|
-
} | null>;
|
|
1405
|
-
};
|
|
1406
|
-
reddit: (options: RedditOptions) => {
|
|
1407
|
-
id: "reddit";
|
|
1408
|
-
name: string;
|
|
1409
|
-
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
1410
|
-
state: string;
|
|
1411
|
-
codeVerifier: string;
|
|
1412
|
-
scopes?: string[];
|
|
1413
|
-
redirectURI: string;
|
|
1414
|
-
}): Promise<URL>;
|
|
1415
|
-
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1416
|
-
code: string;
|
|
1417
|
-
redirectURI: string;
|
|
1418
|
-
codeVerifier?: string;
|
|
1419
|
-
deviceId?: string;
|
|
1420
|
-
}) => Promise<OAuth2Tokens>;
|
|
1421
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1422
|
-
user: {
|
|
1423
|
-
id: string;
|
|
1424
|
-
name?: string;
|
|
1425
|
-
email?: string | null;
|
|
1426
|
-
image?: string;
|
|
1427
|
-
emailVerified: boolean;
|
|
1428
|
-
[key: string]: any;
|
|
1429
|
-
};
|
|
1430
|
-
data: any;
|
|
1431
|
-
} | null>;
|
|
1432
|
-
};
|
|
1433
|
-
roblox: (options: RobloxOptions) => {
|
|
1434
|
-
id: "roblox";
|
|
1435
|
-
name: string;
|
|
1436
|
-
createAuthorizationURL({ state, scopes, redirectURI }: {
|
|
1437
|
-
state: string;
|
|
1438
|
-
codeVerifier: string;
|
|
1439
|
-
scopes?: string[];
|
|
1440
|
-
redirectURI: string;
|
|
1441
|
-
}): URL;
|
|
1442
|
-
validateAuthorizationCode: ({ code, redirectURI }: {
|
|
1443
|
-
code: string;
|
|
1444
|
-
redirectURI: string;
|
|
1445
|
-
codeVerifier?: string;
|
|
1446
|
-
deviceId?: string;
|
|
1447
|
-
}) => Promise<OAuth2Tokens>;
|
|
1448
|
-
getUserInfo(token: OAuth2Tokens): Promise<{
|
|
1449
|
-
user: {
|
|
1450
|
-
id: string;
|
|
1451
|
-
name?: string;
|
|
1452
|
-
email?: string | null;
|
|
1453
|
-
image?: string;
|
|
1454
|
-
emailVerified: boolean;
|
|
1455
|
-
[key: string]: any;
|
|
1456
|
-
};
|
|
1457
|
-
data: any;
|
|
1458
|
-
} | null>;
|
|
1459
|
-
};
|
|
1460
|
-
vk: (options: VkOption) => {
|
|
1461
|
-
id: "vk";
|
|
1462
|
-
name: string;
|
|
1463
|
-
createAuthorizationURL({ state, scopes, codeVerifier, redirectURI }: {
|
|
1464
|
-
state: string;
|
|
1465
|
-
codeVerifier: string;
|
|
1466
|
-
scopes?: string[];
|
|
1467
|
-
redirectURI: string;
|
|
1468
|
-
}): Promise<URL>;
|
|
1469
|
-
validateAuthorizationCode: ({ code, codeVerifier, redirectURI, deviceId, }: {
|
|
1470
|
-
code: string;
|
|
1471
|
-
redirectURI: string;
|
|
1472
|
-
codeVerifier?: string;
|
|
1473
|
-
deviceId?: string;
|
|
1474
|
-
}) => Promise<OAuth2Tokens>;
|
|
1475
|
-
getUserInfo(data: OAuth2Tokens): Promise<{
|
|
1476
|
-
user: {
|
|
1477
|
-
id: string;
|
|
1478
|
-
first_name: string;
|
|
1479
|
-
last_name: string;
|
|
1480
|
-
email: string;
|
|
1481
|
-
image: string | undefined;
|
|
1482
|
-
emailVerified: boolean;
|
|
1483
|
-
birthday: string;
|
|
1484
|
-
sex: number | undefined;
|
|
1485
|
-
};
|
|
1486
|
-
data: VkProfile;
|
|
1487
|
-
} | null>;
|
|
1488
|
-
};
|
|
1489
|
-
};
|
|
1490
|
-
declare const socialProviderList: ["github", ...(keyof typeof socialProviders)[]];
|
|
1491
|
-
type SocialProviderList = typeof socialProviderList;
|
|
1492
|
-
declare const SocialProviderListEnum: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "reddit" | "roblox" | "vk")[]]>;
|
|
1493
|
-
type SocialProvider = z.infer<typeof SocialProviderListEnum>;
|
|
1494
|
-
type SocialProviders = {
|
|
1495
|
-
[K in SocialProviderList[number]]?: Prettify<Parameters<(typeof socialProviders)[K]>[0] & {
|
|
1496
|
-
enabled?: boolean;
|
|
1497
|
-
}>;
|
|
1498
|
-
};
|
|
1499
|
-
|
|
1500
|
-
export { type VkProfile as $, type AppleProfile as A, type TwitterProfile as B, type TwitterOption as C, type DiscordProfile as D, twitter as E, type FacebookProfile as F, type GithubProfile as G, type DropboxProfile as H, type DropboxOptions as I, dropbox as J, type LinkedInOptions as K, type LinkedInProfile as L, type MicrosoftEntraIDProfile as M, linkedin as N, type OAuthProvider as O, type ProviderOptions as P, type GitlabProfile as Q, type GitlabOptions as R, type SocialProviders as S, type TwitchProfile as T, gitlab as U, type RedditProfile as V, type RedditOptions as W, reddit as X, type RobloxProfile as Y, type RobloxOptions as Z, roblox as _, type OAuth2Tokens as a, LANG as a0, type VkOption as a1, vk as a2, type SocialProviderList as b, socialProviderList as c, SocialProviderListEnum as d, type SocialProvider as e, type GithubOptions as f, github as g, type GoogleProfile as h, type GoogleOptions as i, google as j, type AppleNonConformUser as k, type AppleOptions as l, apple as m, getApplePublicKey as n, type MicrosoftOptions as o, microsoft as p, type DiscordOptions as q, discord as r, socialProviders as s, type SpotifyProfile as t, type SpotifyOptions as u, spotify as v, type TwitchOptions as w, twitch as x, type FacebookOptions as y, facebook as z };
|