Skip to content

Commit b805718

Browse files
committed
test: add oauth flow test
1 parent 7d7bd68 commit b805718

File tree

2 files changed

+371
-6
lines changed

2 files changed

+371
-6
lines changed

src/module.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default defineNuxtModule<RuntimeModuleOptions>({
6969
whitelist: (() => {
7070
const combinedWhitelist = [...(defaultOptions.auth?.whitelist || []), ...(runtimeConfigOptions.auth?.whitelist || [])]
7171
const apiBasePath = runtimeConfigOptions.apiBasePath || defaultOptions.apiBasePath
72-
72+
7373
// Auto-whitelist related endpoints if /register is whitelisted
7474
if (combinedWhitelist.includes('/register')) {
7575
const registrationEndpoints = [
@@ -84,7 +84,7 @@ export default defineNuxtModule<RuntimeModuleOptions>({
8484
}
8585
})
8686
}
87-
87+
8888
// Auto-whitelist Google OAuth endpoints if Google OAuth is configured
8989
if (runtimeConfigOptions.auth?.google) {
9090
const googleOAuthEndpoints = [
@@ -98,7 +98,7 @@ export default defineNuxtModule<RuntimeModuleOptions>({
9898
}
9999
})
100100
}
101-
101+
102102
return combinedWhitelist
103103
})()
104104
},
@@ -112,7 +112,7 @@ export default defineNuxtModule<RuntimeModuleOptions>({
112112
whitelist: (() => {
113113
const combinedWhitelist = [...(defaultOptions.auth?.whitelist || []), ...(runtimeConfigOptions.auth?.whitelist || [])]
114114
const apiBasePath = runtimeConfigOptions.apiBasePath || defaultOptions.apiBasePath
115-
115+
116116
// Auto-whitelist related endpoints if /register is whitelisted
117117
if (combinedWhitelist.includes('/register')) {
118118
const registrationEndpoints = [
@@ -127,7 +127,7 @@ export default defineNuxtModule<RuntimeModuleOptions>({
127127
}
128128
})
129129
}
130-
130+
131131
// Auto-whitelist Google OAuth endpoints if Google OAuth is configured
132132
if (runtimeConfigOptions.auth?.google) {
133133
const googleOAuthEndpoints = [
@@ -141,7 +141,7 @@ export default defineNuxtModule<RuntimeModuleOptions>({
141141
}
142142
})
143143
}
144-
144+
145145
return combinedWhitelist
146146
})(),
147147
permissions: runtimeConfigOptions.auth?.permissions || defaultOptions.auth.permissions

0 commit comments

Comments
 (0)