Skip to content

Commit

Permalink
feat: auth
Browse files Browse the repository at this point in the history
  • Loading branch information
rharkor committed Jul 22, 2023
1 parent f6e2fed commit 3e46783
Show file tree
Hide file tree
Showing 42 changed files with 1,101 additions and 207 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
"donjayamanne.githistory",
"ms-azuretools.vscode-docker",
"ftonato.password-generator",
"adamhartford.vscode-base64"
"adamhartford.vscode-base64",
"ChakrounAnas.turbo-console-log"
]
}
},
Expand Down
4 changes: 3 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres?schema=public"
PASSWORD_HASHER_SECRET=secret
JWT_SECRET=secret
JWT_SECRET=secret
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=secret
4 changes: 4 additions & 0 deletions env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ export const env = createEnv({
PASSWORD_HASHER_SECRET: z.string().nonempty().min(16),
JWT_SECRET: z.string().nonempty().min(16),
DATABASE_URL: z.string().nonempty(),
NEXTAUTH_SECRET: z.string().nonempty().min(16),
NEXTAUTH_URL: z.string().nonempty(),
},
client: {},
runtimeEnv: {
ANALYZE: process.env.ANALYZE,
PASSWORD_HASHER_SECRET: process.env.PASSWORD_HASHER_SECRET,
JWT_SECRET: process.env.JWT_SECRET,
DATABASE_URL: process.env.DATABASE_URL,
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
},
})
Loading

0 comments on commit 3e46783

Please sign in to comment.