Skip to content

Commit

Permalink
feat(starter/nuxt-auth): get auth secret and auth origin from env
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Jan 23, 2023
1 parent 53fc21f commit 6fbb10e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions starter/nuxt-auth/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ export default defineNuxtConfig({
typescript: {
shim: false,
},
auth: {
origin: process.env.AUTH_ORIGIN,
},
});
1 change: 1 addition & 0 deletions starter/nuxt-auth/server/api/auth/[...].ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import GithubProvider from 'next-auth/providers/github';
import {NuxtAuthHandler} from '#auth';

export default NuxtAuthHandler({
secret: process.env.AUTH_SECRET,
pages: {
signIn: '/auth/login',
},
Expand Down

0 comments on commit 6fbb10e

Please sign in to comment.