rivet-gg / opengb-modules

Official registry of OpenGB modules.
https://opengb.dev
Apache License 2.0
0 stars 1 forks source link

Document what `userToken` is used for in `auth.authEmailPasswordless` #102

Open NathanFlurry opened 1 month ago

linear[bot] commented 1 month ago

OGB-67 Document what `userToken` is used for in `auth.authEmailPasswordless`

NathanFlurry commented 2 weeks ago

@greptileai

greptile-apps[bot] commented 2 weeks ago

The userToken in auth.authEmailPasswordless is used to fetch the existing user if a session token is provided. It is validated using the authenticate_user script from the users module.

References

/modules/auth/scripts/auth_email_passwordless.ts /modules/users/scripts/authenticate_user.ts

Ask Greptile