Skip to content

Commit

Permalink
dev/prod auth0 setup
Browse files Browse the repository at this point in the history
  • Loading branch information
eirslett committed May 18, 2024
1 parent f456cff commit 1859b2e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import { isDevelopment } from './utils.js';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const AUTH0_CLIENT_ID = 'gq575MGFWuiYcXpPTXNoJNYfAuoq19KD';
const AUTH0_CLIENT_ID = isDevelopment()
? 'gq575MGFWuiYcXpPTXNoJNYfAuoq19KD'
: 'Vpjwcxk7wKCkI3epI89TAaF0CSnfzVnK';

let jwks;

Expand All @@ -31,7 +33,9 @@ if (fs.existsSync(secretsFile)) {
}

const auth0Issuer = await Issuer.discover(
'https://dev-fxrac16ih4t75q3f.us.auth0.com/.well-known/openid-configuration',
isDevelopment()
? 'https://dev-fxrac16ih4t75q3f.us.auth0.com/.well-known/openid-configuration'
: 'https://unreed.eu.auth0.com/.well-known/openid-configuration',
);

function getAuth0Client(req) {
Expand Down

0 comments on commit 1859b2e

Please sign in to comment.