Korbs
- Louisville, Kentucky
- https://sudovanilla.com
-
I’m Korbs, a frontend software and web developer. I enjoy to work with open source, component based web technology, and focus on self-hosting services. I’m known for current projects like Penpot Desktop and FalixNodes Desktop.
- Joined on
2023-04-19
Create forms and password reset and invites
Not Detecting Auth properly (If/Else logged in or not)
Is cookie detection instead:
if (Astro.cookies.get('sb-access-token') && Astro.cookies.get('sb-refresh-token')) {
var IsLoggedIn = true
} else {
var IsLoggedIn = false
}
Detect if user is subscribed
Convert Subscribe script into it's own function
Not Detecting Auth properly (If/Else logged in or not)
Instead of using {email}
, we'll be detecting weather or not if there's even a user logged in by using {user}
from Supabase.
Removed:
const { email } = Astro.locals
Replace…
Not Detecting Auth properly (If/Else logged in or not)
Not Detecting Auth properly (If/Else logged in or not)
Instead of using {email}
to detect weather or not the user is logged in, we should add a method to detect this.
Using just {email}
should not the be way.