Skip to content

Commit

Permalink
Restore Auth Url value on nuxt config (#243)
Browse files Browse the repository at this point in the history
* build(nuxt.config.ts): hardcode the auth url as a temporary solution

* build(nuxt.config.ts): set auth session data types

---------

Signed-off-by: Tamim Hamoudi <[email protected]>
Co-authored-by: Mo Mansour <[email protected]>
  • Loading branch information
thamudi and itsmohmans authored Oct 3, 2024
1 parent 56e2a09 commit 49b8c06
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default defineNuxtConfig({

auth: {
originEnvKey: 'NUXT_PUBLIC_AUTH_BASE_URL',
baseURL: process.env.NUXT_PUBLIC_AUTH_BASE_URL ?? '',
baseURL: 'https://community.api.prod.josa.ngo/v2/auth/',
provider: {
type: 'local',
endpoints: {
Expand All @@ -105,6 +105,14 @@ export default defineNuxtConfig({
secureCookieAttribute: true,
httpOnlyCookieAttribute: true, // NOTE: disable in local development
},
session: {
dataType: {
id: 'string',
username: 'string',
iat: 'number',
exp: 'number',
},
},
},
},

Expand Down

0 comments on commit 49b8c06

Please sign in to comment.