Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Merge branch 'master' into chore/change-dashboard-links

Greg Richardson1bac9348593f
diff --cc apps/docs/pages/guides/auth/auth-helpers/nextjs-pages.mdx
index 14738f73071,bfadfe16dd3..fc23df156a4
--- a/apps/docs/pages/guides/auth/auth-helpers/nextjs-pages.mdx
+++ b/apps/docs/pages/guides/auth/auth-helpers/nextjs-pages.mdx
@@@ -37,30 -29,9 +29,9 @@@ Additionally, install the **React Auth
npm install @supabase/auth-helpers-react
```
- </TabPanel>
- <TabPanel id="yarn" label="Yarn">
-
- ```sh
- yarn add @supabase/auth-helpers-nextjs
- ```
-
- This library supports the following tooling versions:
-
- - Node.js: `^10.13.0 || >=12.0.0`
- - Next.js: `>=10`
-
- Additionally, install the **React Auth Helpers** for components and hooks that can be used across all React-based frameworks.
-
- ```sh
- yarn add @supabase/auth-helpers-react
- ```
-
- </TabPanel>
- </Tabs>
-
## Set up environment variables
-Retrieve your project URL and anon key in your project's [API settings](https://app.supabase.com/project/_/settings/api) in the Dashboard to set up the following environment variables. For local development you can set them in a `.env.local` file. See an [example](https://github.com/supabase/auth-helpers/blob/main/examples/nextjs/.env.local.example).
+Retrieve your project URL and anon key in your project's [API settings](https://supabase.com/dashboard/project/_/settings/api) in the Dashboard to set up the following environment variables. For local development you can set them in a `.env.local` file. See an [example](https://github.com/supabase/auth-helpers/blob/main/examples/nextjs/.env.local.example).
```bash .env.local
NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
diff --cc apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx
index b7c1287de34,14a578741ad..ade0d0405e2
--- a/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx
+++ b/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx
@@@ -62,32 -62,13 +62,13 @@@ npm run de
### Install Next.js Auth Helpers library
- <Tabs
- scrollable
- size="small"
- type="underlined"
- defaultActiveId="npm"
- >
-
- <TabPanel id="npm" label="npm">
-
- ```sh
- npm install @supabase/auth-helpers-nextjs
+ ```sh Terminal
+ npm install @supabase/auth-helpers-nextjs @supabase/supabase-js
```
- </TabPanel>
- <TabPanel id="yarn" label="Yarn">
-
- ```sh
- yarn add @supabase/auth-helpers-nextjs
- ```
-
- </TabPanel>
- </Tabs>
-
### Declare Environment Variables
-Retrieve your project's URL and anon key from your [API settings](https://app.supabase.com/project/_/settings/api), and create a `.env.local` file with the following environment variables:
+Retrieve your project's URL and anon key from your [API settings](https://supabase.com/dashboard/project/_/settings/api), and create a `.env.local` file with the following environment variables:
```bash .env.local
NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
diff --cc apps/docs/pages/guides/auth/auth-helpers/remix.mdx
index c2e092a2ab2,85e3e2eaac8..e1769bca84d
--- a/apps/docs/pages/guides/auth/auth-helpers/remix.mdx
+++ b/apps/docs/pages/guides/auth/auth-helpers/remix.mdx
@@@ -38,23 -30,9 +30,9 @@@ This library supports the following too
- Remix: `>=1.7.2`
- </TabPanel>
- <TabPanel id="yarn" label="Yarn">
-
- ```sh
- yarn add @supabase/auth-helpers-remix
- ```
-
- This library supports the following tooling versions:
-
- - Remix: `>=1.7.2`
-
- </TabPanel>
- </Tabs>
-
## Set up environment variables
-Retrieve your project URL and anon key in your project's [API settings](https://app.supabase.com/project/_/settings/api) in the Dashboard to set up the following environment variables. For local development you can set them in a `.env` file. See an [example](https://github.com/supabase/auth-helpers/blob/main/examples/remix/.env.example).
+Retrieve your project URL and anon key in your project's [API settings](https://supabase.com/dashboard/project/_/settings/api) in the Dashboard to set up the following environment variables. For local development you can set them in a `.env` file. See an [example](https://github.com/supabase/auth-helpers/blob/main/examples/remix/.env.example).
```bash .env
SUPABASE_URL=YOUR_SUPABASE_URL
diff --cc apps/docs/pages/guides/auth/server-side-rendering.mdx
index 362197b60ba,109c6351565..7ba79d757f0
--- a/apps/docs/pages/guides/auth/server-side-rendering.mdx
+++ b/apps/docs/pages/guides/auth/server-side-rendering.mdx
@@@ -51,8 -36,7 +36,7 @@@ Upon successful verification of the ide
<Admonition type="tip">
- You can configure [redirects URLs](https://supabase.com/dashboard/project/_/auth/url-configuration) in the Supabase Dashboard. You can use [wildcard match patterns](/docs/guides/auth#redirect-urls-and-wildcards)
- like `*` and `**` to allow redirects to different forms of URLs.
-You can configure [redirects URLs](https://app.supabase.com/project/_/auth/url-configuration) in the Supabase Dashboard. You can use [wildcard match patterns](/docs/guides/auth#redirect-urls-and-wildcards) like `*` and `**` to allow redirects to different forms of URLs.
++You can configure [redirects URLs](https://supabase.com/dashboard/project/_/auth/url-configuration) in the Supabase Dashboard. You can use [wildcard match patterns](/docs/guides/auth#redirect-urls-and-wildcards) like `*` and `**` to allow redirects to different forms of URLs.
</Admonition>
diff --cc apps/docs/pages/guides/auth/social-login/auth-kakao.mdx
index 00000000000,1df2e70172c..bc939d61230
mode 000000,100644..100644
--- a/apps/docs/pages/guides/auth/social-login/auth-kakao.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-kakao.mdx
@@@ -1,0 -1,97 +1,97 @@@
+ import Layout from '~/layouts/DefaultGuideLayout'
+
+ export const meta = {
+ id: 'auth-kakao',
+ title: 'Login with Kakao',
+ description: 'Add Kakao OAuth to your Supabase project',
+ }
+
+ To enable Kakao Auth for your project, you need to set up an Kakao OAuth application and add the application credentials to your Supabase Dashboard.
+
+ ## Overview
+
+ Kakao OAuth consists of six broad steps:
+
+ - Create and configure your app in the [Kakao Developer Portal](https://developers.kakao.com).
+ - Obtaining a `REST API key` - this will serve as the `client_id`.
+ - Generating the `Client secret code` - this will serve as the `client_secret`.
+ - Additional configurations on Kakao Developers Portal.
-- Add your `client id` and `client secret` keys to your [Supabase Project](https://app.supabase.com).
++- Add your `client id` and `client secret` keys to your [Supabase Project](https://supabase.com/dashboard).
+ - Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js).
+
+ ## Access your Kakao Developer account
+
+ - Go to [Kakao Developers Portal](https://developers.kakao.com).
+ - Click on `Login` at the top right to log in.
+
+ ![Kakao Developers Portal.](/docs/img/guides/auth-kakao/kakao-developers-page.png)
+
+ ## Create and configure your app
+
+ - Go to `My Application`.
+ - Click on `Add an application` at the top.
+ - Fill out your app information:
+ - App icon.
+ - App name.
+ - Company name.
+ - Click `Save` at the bottom right.
+
+ ## Obtain a REST API key
+
+ This will serve as the `client_id` when you make API calls to authenticate the user.
+
+ - Go to `My Application`.
+ - Click on your app.
+ - You will be redirected to `Summary` tab of your app.
+ - In the `App Keys` section you will see `REST API key` -- this ID will become your `client_id` later.
+
+ ## Find your callback URL
+
+ <SocialProviderSetup provider="Kakao" />- To add callback URL on Kakao, go to `Product settings` >
+ `Kakao Login` > `Redirect URI`.
+
+ ## Generate and activate a `client_secret`
+
+ - Go to `Product settings` > `Kakao Login` > `Security`.
+ - Click on the `Kakao Login` switch to enable Kakao Login.
+ - Click on `generate code` at the bottom to generate the `Client secret code` -- this will serve as a `client_secret` for your supabase project.
+ - Make sure you enabled `Client sercet code` by selecting `enable` from the `Activation state` section.
+
+ ## Additional configurations on Kakao Developers Portal
+
+ - Make sure the Kakao Login is enabled in the `Kakao Login` tab.
+ - Set following scopes under the "Consent Items": account_email, profile_image, profile_nickname
+
+ ![Consent items needs to be set.](/docs/img/guides/auth-kakao/kakao-developers-consent-items-set.png)
+
+ ## Add your OAuth credentials to Supabase
+
+ <SocialProviderSettingsSupabase provider="Kakao" />
+
+ ## Add login code to your client app
+
+ When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `kakao` as the `provider`:
+
+ ```js
+ async function signInWithKakao() {
+ const { data, error } = await supabase.auth.signInWithOAuth({
+ provider: 'kakao',
+ })
+ }
+ ```
+
+ When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:
+
+ ```js
+ async function signout() {
+ const { error } = await supabase.auth.signOut()
+ }
+ ```
+
+ ## Resources
+
+ - [Kakao Developers Portal](https://developers.kakao.com).
+
+ export const Page = ({ children }) => <Layout meta={meta} children={children} />
+
+ export default Page
diff --cc apps/docs/pages/guides/realtime/postgres-changes.mdx
index ea72540662d,8cff43e6e0e..523855cd8ca
--- a/apps/docs/pages/guides/realtime/postgres-changes.mdx
+++ b/apps/docs/pages/guides/realtime/postgres-changes.mdx
@@@ -331,11 -331,8 +331,8 @@@ const channel = supabas
## Custom Tokens
You may choose to sign your own tokens to customize claims that can be checked in your RLS policies.
- In order for this to work you must pass `apikey` in both Realtime's `headers` and `params` when creating the client.
- The `apikey` in `params` must be either the `anon` or `service_role` token that Supabase provides for every project.
- You can find these tokens under [Project API keys](https://supabase.com/dashboard/project/_/settings/api) in your project's dashboard.
- This will authenticate your request in the API gateway.
-Your project JWT secret is found with your [Project API keys](https://app.supabase.com/project/_/settings/api) in your dashboard.
++Your project JWT secret is found with your [Project API keys](https://supabase.com/dashboard/project/_/settings/api) in your dashboard.
<Admonition type="caution">
Do not expose the `service_role` token on the client because the role is authorized to bypass