├── .github ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE │ ├── bug-report.yaml │ ├── config.yml │ └── enhancement.yml ├── PULL_REQUEST_TEMPLATE.md ├── nuxt-auth.jpg ├── reproduire │ └── needs-reproduction.md └── workflows │ ├── ci.yaml │ ├── deploy-docs.yml │ ├── pkg.pr.new.yml │ ├── release.yml │ ├── reproduire-close.yml │ └── reproduire.yml ├── .gitignore ├── .npmrc ├── .nuxtrc ├── CNAME ├── LICENSE ├── README.md ├── SECURITY.md ├── docs ├── .vitepress │ ├── config.mts │ ├── head.ts │ ├── routes │ │ ├── navbar.ts │ │ └── sidebar │ │ │ ├── guide.ts │ │ │ ├── index.ts │ │ │ ├── recipes.ts │ │ │ └── upgrade.ts │ └── theme │ │ ├── components │ │ ├── Banner.vue │ │ ├── GithubStarsButton.vue │ │ ├── Layout.vue │ │ ├── RecipeHeader.vue │ │ ├── StarIcon.vue │ │ └── Tag.vue │ │ ├── index.ts │ │ └── style.css ├── api │ └── overview.md ├── guide │ ├── advanced │ │ ├── caching.md │ │ ├── deployment │ │ │ ├── netlify.md │ │ │ ├── self-hosted.md │ │ │ └── vercel.md │ │ └── url-resolutions.md │ ├── application-side │ │ ├── configuration.md │ │ ├── protecting-pages.md │ │ └── session-access.md │ ├── authjs │ │ ├── custom-pages.md │ │ ├── nuxt-auth-handler.md │ │ ├── quick-start.md │ │ ├── server-side │ │ │ ├── jwt-access.md │ │ │ ├── rest-api.md │ │ │ └── session-access.md │ │ └── session-data.md │ ├── getting-started │ │ ├── choose-provider.md │ │ ├── installation.md │ │ └── introduction.md │ └── local │ │ ├── quick-start.md │ │ └── session-data.md ├── index.md ├── public │ ├── authjs │ │ └── morpheme-auth-screenshot.png │ ├── favicon.ico │ ├── icons │ │ ├── Database.png │ │ ├── Github.png │ │ ├── Layers.png │ │ ├── Mail.png │ │ ├── Refresh.png │ │ ├── Rocket.png │ │ ├── Server.png │ │ └── Speedometer.png │ ├── lock-and-key.png │ ├── lock.png │ └── nuxt-auth-og.jpg ├── recipes │ ├── community │ │ ├── directus.md │ │ ├── laravel-passport.md │ │ └── strapi.md │ ├── introduction │ │ ├── adding-your-recipe.md │ │ └── welcome.md │ └── official │ │ └── mocking-with-vitest.md ├── resources │ ├── error-reference.md │ ├── overview.md │ └── security.md └── upgrade │ ├── index.md │ ├── version-0.10.0.md │ ├── version-0.8.0.md │ ├── version-0.9.0.md │ └── version-1.0.md ├── eslint.config.js ├── package.json ├── playground-authjs ├── .env.example ├── app.vue ├── nuxt.config.ts ├── package.json ├── pages │ ├── always-unprotected.vue │ ├── custom-signin.vue │ ├── guest.vue │ ├── index.vue │ ├── protected │ │ ├── globally.vue │ │ └── locally.vue │ ├── signout.vue │ └── with-caching.vue ├── public │ └── favicon.ico ├── server │ ├── api │ │ ├── auth │ │ │ └── [...].ts │ │ ├── protected │ │ │ ├── inline.ts │ │ │ └── middleware.ts │ │ └── token.get.ts │ └── middleware │ │ └── auth.ts └── tsconfig.json ├── playground-local ├── .gitignore ├── app.vue ├── config │ └── AuthRefreshHandler.ts ├── nuxt.config.ts ├── package.json ├── pages │ ├── always-unprotected.vue │ ├── guest.vue │ ├── index.vue │ ├── login.vue │ ├── protected │ │ ├── globally.vue │ │ └── locally.vue │ ├── register.vue │ ├── signout.vue │ └── with-caching.vue ├── playwright.config.ts ├── public │ └── favicon.ico ├── server │ ├── api │ │ └── auth │ │ │ ├── login.post.ts │ │ │ ├── logout.post.ts │ │ │ ├── refresh.post.ts │ │ │ ├── signup.post.ts │ │ │ └── user.get.ts │ └── utils │ │ └── session.ts ├── tests │ └── local.spec.ts ├── tsconfig.json └── vitest.config.ts ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── src ├── build │ └── autoAddMiddleware.ts ├── module.ts └── runtime │ ├── composables │ ├── authjs │ │ ├── useAuth.ts │ │ ├── useAuthState.ts │ │ └── utils │ │ │ └── navigateToAuthPage.ts │ ├── common │ │ └── getRequestURL.ts │ ├── commonAuthState.ts │ └── local │ │ ├── useAuth.ts │ │ ├── useAuthState.ts │ │ └── utils │ │ └── token.ts │ ├── helpers.ts │ ├── middleware │ └── sidebase-auth.ts │ ├── plugin.ts │ ├── plugins │ └── refresh-token.server.ts │ ├── server │ ├── plugins │ │ └── assertOrigin.ts │ └── services │ │ ├── authjs │ │ ├── nuxtAuthHandler.ts │ │ └── utils.ts │ │ ├── errors.ts │ │ └── index.ts │ ├── types.ts │ └── utils │ ├── callbackUrl.ts │ ├── checkSessionResult.ts │ ├── fetch.ts │ ├── kit.ts │ ├── logger.ts │ ├── refreshHandler.ts │ └── url.ts ├── tests ├── authjs.url.spec.ts ├── autoAddMiddleware.spec.ts └── local.url.spec.ts ├── tsconfig.json └── vitest.config.ts /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.github/CONTRIBUTING.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug-report.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.github/ISSUE_TEMPLATE/bug-report.yaml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/enhancement.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.github/ISSUE_TEMPLATE/enhancement.yml -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/nuxt-auth.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.github/nuxt-auth.jpg -------------------------------------------------------------------------------- /.github/reproduire/needs-reproduction.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.github/reproduire/needs-reproduction.md -------------------------------------------------------------------------------- /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.github/workflows/deploy-docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.github/workflows/deploy-docs.yml -------------------------------------------------------------------------------- /.github/workflows/pkg.pr.new.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.github/workflows/pkg.pr.new.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/reproduire-close.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.github/workflows/reproduire-close.yml -------------------------------------------------------------------------------- /.github/workflows/reproduire.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.github/workflows/reproduire.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.npmrc -------------------------------------------------------------------------------- /.nuxtrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/.nuxtrc -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | auth.sidebase.io 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/SECURITY.md -------------------------------------------------------------------------------- /docs/.vitepress/config.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/config.mts -------------------------------------------------------------------------------- /docs/.vitepress/head.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/head.ts -------------------------------------------------------------------------------- /docs/.vitepress/routes/navbar.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/routes/navbar.ts -------------------------------------------------------------------------------- /docs/.vitepress/routes/sidebar/guide.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/routes/sidebar/guide.ts -------------------------------------------------------------------------------- /docs/.vitepress/routes/sidebar/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/routes/sidebar/index.ts -------------------------------------------------------------------------------- /docs/.vitepress/routes/sidebar/recipes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/routes/sidebar/recipes.ts -------------------------------------------------------------------------------- /docs/.vitepress/routes/sidebar/upgrade.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/routes/sidebar/upgrade.ts -------------------------------------------------------------------------------- /docs/.vitepress/theme/components/Banner.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/theme/components/Banner.vue -------------------------------------------------------------------------------- /docs/.vitepress/theme/components/GithubStarsButton.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/theme/components/GithubStarsButton.vue -------------------------------------------------------------------------------- /docs/.vitepress/theme/components/Layout.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/theme/components/Layout.vue -------------------------------------------------------------------------------- /docs/.vitepress/theme/components/RecipeHeader.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/theme/components/RecipeHeader.vue -------------------------------------------------------------------------------- /docs/.vitepress/theme/components/StarIcon.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/theme/components/StarIcon.vue -------------------------------------------------------------------------------- /docs/.vitepress/theme/components/Tag.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/theme/components/Tag.vue -------------------------------------------------------------------------------- /docs/.vitepress/theme/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/theme/index.ts -------------------------------------------------------------------------------- /docs/.vitepress/theme/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/.vitepress/theme/style.css -------------------------------------------------------------------------------- /docs/api/overview.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/api/overview.md -------------------------------------------------------------------------------- /docs/guide/advanced/caching.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/advanced/caching.md -------------------------------------------------------------------------------- /docs/guide/advanced/deployment/netlify.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/advanced/deployment/netlify.md -------------------------------------------------------------------------------- /docs/guide/advanced/deployment/self-hosted.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/advanced/deployment/self-hosted.md -------------------------------------------------------------------------------- /docs/guide/advanced/deployment/vercel.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/advanced/deployment/vercel.md -------------------------------------------------------------------------------- /docs/guide/advanced/url-resolutions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/advanced/url-resolutions.md -------------------------------------------------------------------------------- /docs/guide/application-side/configuration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/application-side/configuration.md -------------------------------------------------------------------------------- /docs/guide/application-side/protecting-pages.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/application-side/protecting-pages.md -------------------------------------------------------------------------------- /docs/guide/application-side/session-access.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/application-side/session-access.md -------------------------------------------------------------------------------- /docs/guide/authjs/custom-pages.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/authjs/custom-pages.md -------------------------------------------------------------------------------- /docs/guide/authjs/nuxt-auth-handler.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/authjs/nuxt-auth-handler.md -------------------------------------------------------------------------------- /docs/guide/authjs/quick-start.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/authjs/quick-start.md -------------------------------------------------------------------------------- /docs/guide/authjs/server-side/jwt-access.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/authjs/server-side/jwt-access.md -------------------------------------------------------------------------------- /docs/guide/authjs/server-side/rest-api.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/authjs/server-side/rest-api.md -------------------------------------------------------------------------------- /docs/guide/authjs/server-side/session-access.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/authjs/server-side/session-access.md -------------------------------------------------------------------------------- /docs/guide/authjs/session-data.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/authjs/session-data.md -------------------------------------------------------------------------------- /docs/guide/getting-started/choose-provider.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/getting-started/choose-provider.md -------------------------------------------------------------------------------- /docs/guide/getting-started/installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/getting-started/installation.md -------------------------------------------------------------------------------- /docs/guide/getting-started/introduction.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/getting-started/introduction.md -------------------------------------------------------------------------------- /docs/guide/local/quick-start.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/local/quick-start.md -------------------------------------------------------------------------------- /docs/guide/local/session-data.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/guide/local/session-data.md -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/public/authjs/morpheme-auth-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/public/authjs/morpheme-auth-screenshot.png -------------------------------------------------------------------------------- /docs/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/public/favicon.ico -------------------------------------------------------------------------------- /docs/public/icons/Database.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/public/icons/Database.png -------------------------------------------------------------------------------- /docs/public/icons/Github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/public/icons/Github.png -------------------------------------------------------------------------------- /docs/public/icons/Layers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/public/icons/Layers.png -------------------------------------------------------------------------------- /docs/public/icons/Mail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/public/icons/Mail.png -------------------------------------------------------------------------------- /docs/public/icons/Refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/public/icons/Refresh.png -------------------------------------------------------------------------------- /docs/public/icons/Rocket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/public/icons/Rocket.png -------------------------------------------------------------------------------- /docs/public/icons/Server.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/public/icons/Server.png -------------------------------------------------------------------------------- /docs/public/icons/Speedometer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/public/icons/Speedometer.png -------------------------------------------------------------------------------- /docs/public/lock-and-key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/public/lock-and-key.png -------------------------------------------------------------------------------- /docs/public/lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/public/lock.png -------------------------------------------------------------------------------- /docs/public/nuxt-auth-og.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/public/nuxt-auth-og.jpg -------------------------------------------------------------------------------- /docs/recipes/community/directus.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/recipes/community/directus.md -------------------------------------------------------------------------------- /docs/recipes/community/laravel-passport.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/recipes/community/laravel-passport.md -------------------------------------------------------------------------------- /docs/recipes/community/strapi.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/recipes/community/strapi.md -------------------------------------------------------------------------------- /docs/recipes/introduction/adding-your-recipe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/recipes/introduction/adding-your-recipe.md -------------------------------------------------------------------------------- /docs/recipes/introduction/welcome.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/recipes/introduction/welcome.md -------------------------------------------------------------------------------- /docs/recipes/official/mocking-with-vitest.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/recipes/official/mocking-with-vitest.md -------------------------------------------------------------------------------- /docs/resources/error-reference.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/resources/error-reference.md -------------------------------------------------------------------------------- /docs/resources/overview.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/resources/overview.md -------------------------------------------------------------------------------- /docs/resources/security.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/resources/security.md -------------------------------------------------------------------------------- /docs/upgrade/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/upgrade/index.md -------------------------------------------------------------------------------- /docs/upgrade/version-0.10.0.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/upgrade/version-0.10.0.md -------------------------------------------------------------------------------- /docs/upgrade/version-0.8.0.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/upgrade/version-0.8.0.md -------------------------------------------------------------------------------- /docs/upgrade/version-0.9.0.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/upgrade/version-0.9.0.md -------------------------------------------------------------------------------- /docs/upgrade/version-1.0.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/docs/upgrade/version-1.0.md -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/eslint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/package.json -------------------------------------------------------------------------------- /playground-authjs/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/.env.example -------------------------------------------------------------------------------- /playground-authjs/app.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/app.vue -------------------------------------------------------------------------------- /playground-authjs/nuxt.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/nuxt.config.ts -------------------------------------------------------------------------------- /playground-authjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/package.json -------------------------------------------------------------------------------- /playground-authjs/pages/always-unprotected.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/pages/always-unprotected.vue -------------------------------------------------------------------------------- /playground-authjs/pages/custom-signin.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/pages/custom-signin.vue -------------------------------------------------------------------------------- /playground-authjs/pages/guest.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/pages/guest.vue -------------------------------------------------------------------------------- /playground-authjs/pages/index.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/pages/index.vue -------------------------------------------------------------------------------- /playground-authjs/pages/protected/globally.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/pages/protected/globally.vue -------------------------------------------------------------------------------- /playground-authjs/pages/protected/locally.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/pages/protected/locally.vue -------------------------------------------------------------------------------- /playground-authjs/pages/signout.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/pages/signout.vue -------------------------------------------------------------------------------- /playground-authjs/pages/with-caching.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/pages/with-caching.vue -------------------------------------------------------------------------------- /playground-authjs/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/public/favicon.ico -------------------------------------------------------------------------------- /playground-authjs/server/api/auth/[...].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/server/api/auth/[...].ts -------------------------------------------------------------------------------- /playground-authjs/server/api/protected/inline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/server/api/protected/inline.ts -------------------------------------------------------------------------------- /playground-authjs/server/api/protected/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/server/api/protected/middleware.ts -------------------------------------------------------------------------------- /playground-authjs/server/api/token.get.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/server/api/token.get.ts -------------------------------------------------------------------------------- /playground-authjs/server/middleware/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/server/middleware/auth.ts -------------------------------------------------------------------------------- /playground-authjs/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-authjs/tsconfig.json -------------------------------------------------------------------------------- /playground-local/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/.gitignore -------------------------------------------------------------------------------- /playground-local/app.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/app.vue -------------------------------------------------------------------------------- /playground-local/config/AuthRefreshHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/config/AuthRefreshHandler.ts -------------------------------------------------------------------------------- /playground-local/nuxt.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/nuxt.config.ts -------------------------------------------------------------------------------- /playground-local/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/package.json -------------------------------------------------------------------------------- /playground-local/pages/always-unprotected.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/pages/always-unprotected.vue -------------------------------------------------------------------------------- /playground-local/pages/guest.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/pages/guest.vue -------------------------------------------------------------------------------- /playground-local/pages/index.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/pages/index.vue -------------------------------------------------------------------------------- /playground-local/pages/login.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/pages/login.vue -------------------------------------------------------------------------------- /playground-local/pages/protected/globally.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/pages/protected/globally.vue -------------------------------------------------------------------------------- /playground-local/pages/protected/locally.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/pages/protected/locally.vue -------------------------------------------------------------------------------- /playground-local/pages/register.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/pages/register.vue -------------------------------------------------------------------------------- /playground-local/pages/signout.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/pages/signout.vue -------------------------------------------------------------------------------- /playground-local/pages/with-caching.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/pages/with-caching.vue -------------------------------------------------------------------------------- /playground-local/playwright.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/playwright.config.ts -------------------------------------------------------------------------------- /playground-local/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/public/favicon.ico -------------------------------------------------------------------------------- /playground-local/server/api/auth/login.post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/server/api/auth/login.post.ts -------------------------------------------------------------------------------- /playground-local/server/api/auth/logout.post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/server/api/auth/logout.post.ts -------------------------------------------------------------------------------- /playground-local/server/api/auth/refresh.post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/server/api/auth/refresh.post.ts -------------------------------------------------------------------------------- /playground-local/server/api/auth/signup.post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/server/api/auth/signup.post.ts -------------------------------------------------------------------------------- /playground-local/server/api/auth/user.get.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/server/api/auth/user.get.ts -------------------------------------------------------------------------------- /playground-local/server/utils/session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/server/utils/session.ts -------------------------------------------------------------------------------- /playground-local/tests/local.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/tests/local.spec.ts -------------------------------------------------------------------------------- /playground-local/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/tsconfig.json -------------------------------------------------------------------------------- /playground-local/vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/playground-local/vitest.config.ts -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /src/build/autoAddMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/build/autoAddMiddleware.ts -------------------------------------------------------------------------------- /src/module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/module.ts -------------------------------------------------------------------------------- /src/runtime/composables/authjs/useAuth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/composables/authjs/useAuth.ts -------------------------------------------------------------------------------- /src/runtime/composables/authjs/useAuthState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/composables/authjs/useAuthState.ts -------------------------------------------------------------------------------- /src/runtime/composables/authjs/utils/navigateToAuthPage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/composables/authjs/utils/navigateToAuthPage.ts -------------------------------------------------------------------------------- /src/runtime/composables/common/getRequestURL.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/composables/common/getRequestURL.ts -------------------------------------------------------------------------------- /src/runtime/composables/commonAuthState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/composables/commonAuthState.ts -------------------------------------------------------------------------------- /src/runtime/composables/local/useAuth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/composables/local/useAuth.ts -------------------------------------------------------------------------------- /src/runtime/composables/local/useAuthState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/composables/local/useAuthState.ts -------------------------------------------------------------------------------- /src/runtime/composables/local/utils/token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/composables/local/utils/token.ts -------------------------------------------------------------------------------- /src/runtime/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/helpers.ts -------------------------------------------------------------------------------- /src/runtime/middleware/sidebase-auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/middleware/sidebase-auth.ts -------------------------------------------------------------------------------- /src/runtime/plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/plugin.ts -------------------------------------------------------------------------------- /src/runtime/plugins/refresh-token.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/plugins/refresh-token.server.ts -------------------------------------------------------------------------------- /src/runtime/server/plugins/assertOrigin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/server/plugins/assertOrigin.ts -------------------------------------------------------------------------------- /src/runtime/server/services/authjs/nuxtAuthHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/server/services/authjs/nuxtAuthHandler.ts -------------------------------------------------------------------------------- /src/runtime/server/services/authjs/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/server/services/authjs/utils.ts -------------------------------------------------------------------------------- /src/runtime/server/services/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/server/services/errors.ts -------------------------------------------------------------------------------- /src/runtime/server/services/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/server/services/index.ts -------------------------------------------------------------------------------- /src/runtime/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/types.ts -------------------------------------------------------------------------------- /src/runtime/utils/callbackUrl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/utils/callbackUrl.ts -------------------------------------------------------------------------------- /src/runtime/utils/checkSessionResult.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/utils/checkSessionResult.ts -------------------------------------------------------------------------------- /src/runtime/utils/fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/utils/fetch.ts -------------------------------------------------------------------------------- /src/runtime/utils/kit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/utils/kit.ts -------------------------------------------------------------------------------- /src/runtime/utils/logger.ts: -------------------------------------------------------------------------------- 1 | export const ERROR_PREFIX = '[@sidebase/nuxt-auth]' 2 | -------------------------------------------------------------------------------- /src/runtime/utils/refreshHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/utils/refreshHandler.ts -------------------------------------------------------------------------------- /src/runtime/utils/url.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/src/runtime/utils/url.ts -------------------------------------------------------------------------------- /tests/authjs.url.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/tests/authjs.url.spec.ts -------------------------------------------------------------------------------- /tests/autoAddMiddleware.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/tests/autoAddMiddleware.spec.ts -------------------------------------------------------------------------------- /tests/local.url.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/tests/local.url.spec.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sidebase/nuxt-auth/HEAD/vitest.config.ts --------------------------------------------------------------------------------