Skip to content

Commit 3aecf12

Browse files
committed
Enable github and google
1 parent acad711 commit 3aecf12

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

sample-oauth-project/api/src/functions/auth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ export const handler = async (
180180
// We'll enable at least one of these later on, but leave it like this for now
181181
enabledProviders: {
182182
apple: true,
183+
github: true,
184+
google: true,
183185
},
184186
})
185187

sample-oauth-project/redwood.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
port = "${WEB_DEV_PORT:8910}"
1212
host = "local.spoonjoy.app"
1313
apiUrl = "/.redwood/functions" # You can customize graphql and dbauth urls individually too: see https://redwoodjs.com/docs/app-configuration-redwood-toml#api-paths
14-
includeEnvironmentVariables = ["RWJS_API_URL", "APPLE_CLIENT_ID"]
14+
includeEnvironmentVariables = ["RWJS_API_URL", "APPLE_CLIENT_ID", "GITHUB_CLIENT_ID", "GOOGLE_CLIENT_ID"]
1515
[api]
1616
port = "${API_DEV_PORT:8911}"
1717
[browser]

sample-oauth-project/web/src/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const { AuthProvider, useAuth } = createAuth(dbAuthClient)
1313
const oAuthClient = createOAuthClient({
1414
// You can instead do `enabledProviders: {}`, but I find it more clear to be explicitly not enabling these
1515
// We'll enable at least one of these later on, but leave it like this for now
16-
enabledProviders: { apple: true, github: false, google: false },
16+
enabledProviders: { apple: true, github: true, google: true },
1717
})
1818

1919
/**

0 commit comments

Comments
 (0)