Remove redundant checkMemberStatus() from coming-soon page since the auth-init plugin already handles it. Add in-flight request deduplication to prevent concurrent calls from any source. Strip debug console.logs.
7 lines
165 B
JavaScript
7 lines
165 B
JavaScript
export default defineNuxtPlugin(async () => {
|
|
const { memberData, checkMemberStatus } = useAuth()
|
|
|
|
if (!memberData.value) {
|
|
await checkMemberStatus()
|
|
}
|
|
})
|