{"id":18298600,"url":"https://github.com/fusionauth/fusionauth-example-supabase","last_synced_at":"2026-04-05T23:34:04.759Z","repository":{"id":65957998,"uuid":"603433516","full_name":"FusionAuth/fusionauth-example-supabase","owner":"FusionAuth","description":"Sample application demonstrating how to use Supabase in a Next.js application with FusionAuth","archived":false,"fork":false,"pushed_at":"2024-07-28T05:55:51.000Z","size":107,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-05T17:38:07.262Z","etag":null,"topics":["authentication","firebase","nextjs","react","sso","supabase"],"latest_commit_sha":null,"homepage":"https://fusionauth.io/docs/v1/tech/oauth/integrations/supabase","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"FusionAuth/fusionauth-example-nextjs-single-sign-on","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FusionAuth.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-18T13:55:33.000Z","updated_at":"2024-07-28T05:55:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b8c6826-9916-4fa5-a59b-b6101ca906f5","html_url":"https://github.com/FusionAuth/fusionauth-example-supabase","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/FusionAuth%2Ffusionauth-example-supabase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-supabase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-supabase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-supabase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FusionAuth","download_url":"https://codeload.github.com/FusionAuth/fusionauth-example-supabase/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008624,"owners_count":21032556,"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":["authentication","firebase","nextjs","react","sso","supabase"],"created_at":"2024-11-05T15:06:31.063Z","updated_at":"2025-12-30T23:05:21.394Z","avatar_url":"https://github.com/FusionAuth.png","language":"JavaScript","readme":"# Example: Fetching data from Supabase in a Next.js application with FusionAuth\n\nThis is a simple [Next.js](https://nextjs.org/) application to demonstrate how to use [FusionAuth SSO capabilities](https://fusionauth.io/features/single-sign-on) to authenticate and authorize users and fetch data from [Supabase](https://supabase.com/), an open source hosting service for Postgres databases.\n\n## Prerequisites\nYou will need the following things properly installed on your computer.\n\n* [Git](http://git-scm.com/): Presumably you already have this on your machine if you are looking at this project locally; if not, use your platform's package manager to install git, and `git clone` this repo.\n* [nodejs](https://nodejs.org/): Nodejs can be installed via a variety of methods\n* [Docker](https://www.docker.com): For standing up FusionAuth from within a Docker container. (You can [install it other ways](https://fusionauth.io/docs/v1/tech/installation-guide/), but for this example you'll need Docker.)\n\n## Installation\n* `git clone https://github.com/FusionAuth/fusionauth-example-supabase`\n* `cd fusionauth-example-supabase`\n* `docker compose up` (this will block the current terminal)\n* In a new terminal:\n  * `cd app`\n  * `npm install`\n  * Copy `.env.local.dist` to `.env.local`.\n\n\n## FusionAuth Configuration\nThis example assumes that you will run FusionAuth from a Docker container. In the root of this project directory (next to this README) are two files [a Docker compose file](./docker compose.yml) and an [environment variables configuration file](./.env). Assuming you have Docker installed on your machine, a `docker compose up` will bring FusionAuth up on your machine.\n\nThe FusionAuth configuration files also make use of a unique feature of FusionAuth, called Kickstart: when FusionAuth comes up for the first time, it will look at the [Kickstart file](./kickstart/kickstart.json) and mimic API calls to configure FusionAuth for use. It will perform all the necessary setup to make this demo work correctly, but if you are curious as to what the setup would look like by hand, the \"FusionAuth configuration (by hand)\" section of this README describes it in detail.\n\nFor now, get FusionAuth in Docker up and running (via `docker compose up`) if it is not already running; to see, [click here](http://localhost:9011/) to verify it is up and running.\n\n\u003e **NOTE**: If you ever want to reset the FusionAuth system, delete the volumes created by docker compose by executing `docker compose down -v`. FusionAuth will only apply the Kickstart settings when it is first run (e.g., it has no data configured for it yet).\n\nIf you are already have a FusionAuth instance running, you need to make sure that your application (or your tenant) is using RSA keys instead of HMAC when issuing JWTs. Edit your application (or tenant) JWT settings and set `Access token signing key` to _\"Auto generate a new key on save...\"_.\n\n## Running / Development\n\n* `npm run dev` (this will block the current terminal)\n* [Open a browser](http://localhost:3000) and log in using our user's credentials (\"richard@example.com\"/\"password\").\n\nYou can also register a new user for this application and will be automatically logged in after.\n\nLog into the [FusionAuth admin screen](http://localhost:9011) with a different browser or incognito window using the admin user credentials (\"admin@example.com\"/\"password\") to explore the admin user experience.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionauth%2Ffusionauth-example-supabase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffusionauth%2Ffusionauth-example-supabase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionauth%2Ffusionauth-example-supabase/lists"}