{"id":20313125,"url":"https://github.com/sidebase/nuxt-auth-example","last_synced_at":"2025-04-11T16:51:53.100Z","repository":{"id":138101175,"uuid":"556692927","full_name":"sidebase/nuxt-auth-example","owner":"sidebase","description":"A example application using nuxt-auth.","archived":false,"fork":false,"pushed_at":"2024-03-07T14:35:58.000Z","size":867,"stargazers_count":87,"open_issues_count":6,"forks_count":53,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-25T12:53:38.582Z","etag":null,"topics":["auth","nuxt","nuxt-auth","sidebase"],"latest_commit_sha":null,"homepage":"https://nuxt-auth-example.sidebase.io","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sidebase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-10-24T10:32:08.000Z","updated_at":"2025-02-24T11:09:33.000Z","dependencies_parsed_at":"2023-11-13T16:43:40.484Z","dependency_job_id":null,"html_url":"https://github.com/sidebase/nuxt-auth-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidebase%2Fnuxt-auth-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidebase%2Fnuxt-auth-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidebase%2Fnuxt-auth-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidebase%2Fnuxt-auth-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidebase","download_url":"https://codeload.github.com/sidebase/nuxt-auth-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248443111,"owners_count":21104342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth","nuxt","nuxt-auth","sidebase"],"created_at":"2024-11-14T18:09:27.527Z","updated_at":"2025-04-11T16:51:53.074Z","avatar_url":"https://github.com/sidebase.png","language":"Vue","funding_links":[],"categories":["Vue"],"sub_categories":[],"readme":"# Nuxt Auth Example\n\n\u003e This is an example project using [nuxt-auth](https://github.com/sidebase/nuxt-auth), the Nuxt module providing  authentication and sessions via [NextAuth.js](https://github.com/nextauthjs/next-auth). `nuxt-auth` wraps [NextAuth.js](https://github.com/nextauthjs/next-auth) to offer the reliability \u0026 convenience of a 12k star library to the nuxt 3 ecosystem with a native developer experience (DX).\n\nThe deployed version can be found [here](https://nuxt-auth-example.sidebase.io).\n\n![sidebase-preview-for-light](.github/preview.png)\n\n## Setup\n\nTo run this locally:\n```bash\n# install dependencies\nnpm install\n\n# run dev server\nnpm run dev\n\n# build production\nnpm run build\n\n# start production build\nnpm run start\n```\n\nNOTE: For full functionality you'll need to add your own github oauth app client id and client secret in the [`NuxtAuthHandler`](./server/api/auth/%5B...%5D.ts). See [the next section](#environment-variables) for more on this and other configuration.\n\n## Environment variables\n\nThe test deployment is done via docker-compose with `nginx-certbot` image which automatically issues certificate for the domain. Please don't forget to create `.env` file in the project root, which will contain:\n\n- `GITHUB_CLIENT_*`\n  - `GITHUB_CLIENT_ID` - A [GitHub OAuth](https://docs.github.com/en/developers/apps/building-oauth-apps/creating-an-oauth-app) Client Id\n  - `GITHUB_CLIENT_SECRET` - A [GitHub OAuth](https://docs.github.com/en/developers/apps/building-oauth-apps/creating-an-oauth-app) secret\n- `NUXT_SECRET` - A random string used to generate authentication tokens\n- `ORIGIN` - The URL of your authentication api (should be https://example.com, this no trailing slash)\n- `CERTBOT_*` - NuxtAuth requires a SSL certificate to run in production. We use Certbot to automatically generate these\n  - `CERTBOT_DOMAIN` - The domain for which the Certbot should register a certificate\n  - `CERTBOT_EMAIL` - The email under which the domain certificate will be registered\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidebase%2Fnuxt-auth-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsidebase%2Fnuxt-auth-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidebase%2Fnuxt-auth-example/lists"}