adds strava integration
This commit is contained in:
@@ -3,7 +3,7 @@ import { pb } from '$lib/pocketbase';
|
||||
import { currentUser } from '$lib/stores/user_store';
|
||||
|
||||
pb.authStore.loadFromCookie(document.cookie)
|
||||
pb.authStore.onChange(() => {
|
||||
pb.authStore.onChange(() => {
|
||||
currentUser.set(pb.authStore.model as User)
|
||||
document.cookie = pb.authStore.exportToCookie({ httpOnly: false, secure: location.protocol === "https:" })
|
||||
document.cookie = pb.authStore.exportToCookie({ httpOnly: false, secure: location.protocol === "https:" || location.hostname === "localhost", sameSite: 'none' })
|
||||
}, true)
|
||||
Reference in New Issue
Block a user