{"id":17676113,"url":"https://github.com/fa7ad/next-flo","last_synced_at":"2025-07-13T14:33:44.219Z","repository":{"id":80593389,"uuid":"354094499","full_name":"fa7ad/next-flo","owner":"fa7ad","description":"Nextjs Frontend for FLO","archived":false,"fork":false,"pushed_at":"2021-04-02T18:47:56.000Z","size":457,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-05T19:13:12.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"flo-app.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fa7ad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-02T17:57:39.000Z","updated_at":"2021-04-02T18:47:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"26feba4c-ffc0-494a-9773-811444002fb5","html_url":"https://github.com/fa7ad/next-flo","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/fa7ad%2Fnext-flo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa7ad%2Fnext-flo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa7ad%2Fnext-flo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa7ad%2Fnext-flo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fa7ad","download_url":"https://codeload.github.com/fa7ad/next-flo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246352204,"owners_count":20763424,"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":[],"created_at":"2024-10-24T07:24:28.499Z","updated_at":"2025-03-30T17:23:46.242Z","avatar_url":"https://github.com/fa7ad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NextAuth.js Example\n\n[next-auth-example.now.sh](https://next-auth-example.now.sh)\n\n## About this project\n\nThis is an example of how to use [NextAuth.js](https://next-auth.js.org) library to add authentication to a [Next.js](https://nextjs.org) application.\n\n## About NextAuth.js\n\nNextAuth.js is an easy to implement, full-stack (client/server) open source authentication library designed for [Next.js](https://nextjs.org) and [Serverless](https://now.sh).\n\nGo to [next-auth.js.org](https://next-auth.js.org) for more information and documentation.\n\n_NextAuth.js is not associated with Vercel or Next.js._\n\n## Getting started\n\n### 1. Clone the repository and install dependancies\n\n```\ngit clone https://github.com/nextauthjs/next-auth-example.git\ncd next-auth-example\nnpm i\n```\n\n### 2. Configure your local environment\n\nCopy the .env.local.example file in this directory to .env.local (which will be ignored by Git):\n\n```\ncp .env.local.example .env.local\n```\n\nAdd details for one or more providers (e.g. Google, Twitter, GitHub, Email, etc).\n\n#### Database configuration\n\nA database is needed to persist user accounts and to support email sign in, but you can still use NextAuth.js for authentication without one by using OAuth for authentication. If you do not specify a database, JSON Web Tokens will be enabled by default.\n\nYou can skip configuring a database and come back to it later if you want.\n\nWhen configuring your database you should also install an appropriate node_module.\n\n- **SQLite**\n\n  Install module:\n  `npm i sqlite3`\n\n  Database URI:\n  `sqlite://localhost/:memory:?synchronize=true`\n\n- **MySQL**\n\n  Install module:\n  `npm i mysql`\n\n  Database URI:\n  `mysql://username:password@127.0.0.1:3306/database_name?synchronize=true`\n\n- **Postgres**\n\n  Install module:\n  `npm i pg`\n\n  Database URI:\n  `postgres://username:password@127.0.0.1:5432/database_name?synchronize=true`\n\n- **MongoDB**\n\n  Install module:\n  `npm i mongodb`\n\n  Database URI:\n  `mongodb://username:password@127.0.0.1:27017/database_name?synchronize=true`\n\nNotes:\n\n- The example .env specifies an in-memory SQLite database that does not persist data.\n- SQLite is suitable for development / testing but not for production.\n- The option `?synchronize=true` automatically syncs schema changes to the database. It should not be used in production as may result in data loss if there are changes to the schema or to NextAuth.js\n- You can also specify a [TypeORM connection object](https://typeorm.io/#/connection-options) in `pages/api/auth/[...nextauth].js` instead of a database URL / connection string.\n\n### 3. Configure authentication providers\n\n- Review and update options in `pages/api/auth/[...nextauth].js` as needed.\n\n- When setting up OAuth, in the developer admin page for each of your OAuth services, you should configure the callback URL to use a callback path of `{server}/api/auth/callback/{provider}`.\n\n  e.g. For Google OAuth you would use: `http://localhost:3000/api/auth/callback/google`\n\n  A list of configured providers and their callback URLs is available from the endpoint `/api/auth/providers`. You can find more information at https://next-auth.js.org/configuration/providers\n\n- You can also choose to specify an SMTP server for passwordless sign in via email.\n\n### 4. Start the application\n\nTo run your site locally, use:\n\n```\nnpm run dev\n```\n\nTo run it it production mode, use:\n\n```\nnpm build\nnpm start\n```\n\n### 5. Configuring for production\n\nYou must set the NEXTAUTH_URL environment variable with the URL of your site, before deploying to production.\n\ne.g. `NEXTAUTH_URL=https://example.com`\n\nTo do this in on Vercel, you can use the [Vercel project dashboard](https://vercel.com/dashboard) or the `vc env` command:\n\n    vc env add NEXTAUTH_URL production\n\nBe sure to also set environment variables for the Client ID and Client Secret values for all your authentication providers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffa7ad%2Fnext-flo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffa7ad%2Fnext-flo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffa7ad%2Fnext-flo/lists"}