Authentication with Email
Looking at the scripts on the docs, https://opengb.dev/modules/auth/overview, is there not a native script that allows basic email and password authentication? Furthermore, how does one correlate this to the users module or tokens module?
Open Game Backend
Overview - Open Game Backend
Open-source modular backend for all games and tools. Supports Godot, Unreal, HTML5, Unity, and custom engines.
7 Replies
currently only passwordless email auth. it's way more secure, but we'll add passwords at some point.
https://opengb.dev/modules/auth/scripts/verify_email_passwordless the token returned here is the usertoken
Open Game Backend
Verify Email Passwordless - Open Game Backend
Verify a user's email address with a one-time verification code.
you can pass that to something like https://opengb.dev/modules/users/scripts/prepare_profile_picture_upload
Open Game Backend
Start Profile Picture Upload - Open Game Backend
Allow the user to begin uploading a profile picture.
ah, we don't return the user id rn. i think it's encoded in the token, though.
Sounds good, so thinking back to supabase there is a signIn function for the supabase client. Combining the users and email module, is there a signIn, signOut herlp function for those?
Or a way to get the current session?
Open Game Backend
Get User - Open Game Backend