Compare commits
1 Commits
main
..
ed9554f818
| Author | SHA1 | Date | |
|---|---|---|---|
| ed9554f818 |
+1
-1
@@ -12,7 +12,7 @@ COPY . /build
|
||||
RUN npm run postinstall && npm run generate && npm run lint
|
||||
#RUN yarn start:ci & yarn wait && yarn test:cypress
|
||||
|
||||
FROM amd64/nginx:1.30.0@sha256:67c70b6b05c46c8b52c9b8a7575edb95bf8f920de4cb3b5be5aff66cdea4efa8
|
||||
FROM amd64/nginx:1.29.8@sha256:b4c899988815cfc0fdff1151e28d8e97eff1291e153a912b787bfcd5e4b0a819
|
||||
MAINTAINER Joakim Olsson <joakim@unbound.se>
|
||||
|
||||
COPY --from=builder /build/.output/public/ /usr/share/nginx/html/
|
||||
|
||||
+1
-13
@@ -18,22 +18,10 @@ const cache = new InMemoryCache({
|
||||
},
|
||||
})
|
||||
|
||||
const STALE_AUTH_ERRORS = new Set([
|
||||
'login_required',
|
||||
'consent_required',
|
||||
'interaction_required',
|
||||
'invalid_grant',
|
||||
'missing_refresh_token',
|
||||
])
|
||||
|
||||
const getToken = async (options: GetTokenSilentlyOptions) => {
|
||||
const nuxtApp = useNuxtApp()
|
||||
const auth0: Auth0VueClient = nuxtApp.$auth0 as Auth0VueClient
|
||||
return await auth0.getAccessTokenSilently(options).catch((err) => {
|
||||
const code = err && typeof err === 'object' && 'error' in err ? (err as { error?: string }).error : undefined
|
||||
if (code && STALE_AUTH_ERRORS.has(code)) {
|
||||
auth0.logout({ openUrl: false }).catch(() => {})
|
||||
}
|
||||
return await auth0.getAccessTokenSilently(options).catch(() => {
|
||||
return undefined
|
||||
})
|
||||
}
|
||||
|
||||
Generated
+2956
-3507
File diff suppressed because it is too large
Load Diff
+21
-21
@@ -16,41 +16,41 @@
|
||||
"codegen": "graphql-codegen && eslint graphql/generated/operations.ts --fix"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "20.5.3",
|
||||
"@commitlint/config-conventional": "20.5.3",
|
||||
"@graphql-codegen/cli": "7.0.0",
|
||||
"@graphql-codegen/fragment-matcher": "7.0.0",
|
||||
"@graphql-codegen/typescript": "6.0.0",
|
||||
"@graphql-codegen/typescript-operations": "6.0.0",
|
||||
"@graphql-codegen/typescript-vue-apollo": "5.0.1",
|
||||
"@commitlint/cli": "20.5.0",
|
||||
"@commitlint/config-conventional": "20.5.0",
|
||||
"@graphql-codegen/cli": "6.2.1",
|
||||
"@graphql-codegen/fragment-matcher": "6.0.0",
|
||||
"@graphql-codegen/typescript": "5.0.9",
|
||||
"@graphql-codegen/typescript-operations": "5.0.9",
|
||||
"@graphql-codegen/typescript-vue-apollo": "5.0.0",
|
||||
"@nuxt/devtools": "3.2.4",
|
||||
"@nuxt/eslint": "1.15.2",
|
||||
"@nuxtjs/i18n": "10.3.0",
|
||||
"@nuxtjs/i18n": "10.2.4",
|
||||
"@stylistic/eslint-plugin": "5.10.0",
|
||||
"@vue/test-utils": "2.4.10",
|
||||
"@vue/test-utils": "2.4.6",
|
||||
"esbuild": "0.28.0",
|
||||
"eslint": "10.3.0",
|
||||
"eslint": "10.2.0",
|
||||
"eslint-plugin-simple-import-sort": "13.0.0",
|
||||
"eslint-plugin-vue": "10.9.0",
|
||||
"nuxt": "4.4.4",
|
||||
"eslint-plugin-vue": "10.8.0",
|
||||
"nuxt": "4.4.2",
|
||||
"postcss-html": "1.8.1",
|
||||
"sass": "1.99.0",
|
||||
"stylelint": "17.9.1",
|
||||
"stylelint": "17.6.0",
|
||||
"stylelint-config-recommended-vue": "1.6.1",
|
||||
"stylelint-config-standard": "40.0.0",
|
||||
"typescript": "6.0.3",
|
||||
"typescript-eslint": "8.59.1",
|
||||
"typescript": "6.0.2",
|
||||
"typescript-eslint": "8.58.0",
|
||||
"vite-plugin-vuetify": "2.1.3",
|
||||
"vue": "3.5.33",
|
||||
"vue": "3.5.32",
|
||||
"vue-eslint-parser": "10.4.0",
|
||||
"vue-router": "5.0.6",
|
||||
"vuetify": "4.0.6"
|
||||
"vue-router": "5.0.4",
|
||||
"vuetify": "4.0.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"@apollo/client": "3.14.1",
|
||||
"@auth0/auth0-vue": "2.6.0",
|
||||
"@grafana/faro-web-sdk": "2.4.0",
|
||||
"@grafana/faro-web-tracing": "2.4.0",
|
||||
"@auth0/auth0-vue": "2.5.0",
|
||||
"@grafana/faro-web-sdk": "2.3.1",
|
||||
"@grafana/faro-web-tracing": "2.3.1",
|
||||
"@mdi/font": "7.4.47",
|
||||
"@pinia/nuxt": "0.11.3",
|
||||
"@vue/apollo-composable": "4.2.2",
|
||||
|
||||
Reference in New Issue
Block a user