Skip to content

Prisma setup + Oauth

Etienne Bardet requested to merge prisma-setup into main

Set Up prisma and Oauth

Things left :

  • fetch Uid and others from churros on callback
  • login with uid creating the profile if none is found
  • Implémenter un $me ? (je suis pas sûr de comment c'est fait)
  • Fetch all clubs from churros and add them to the db

Atm, you have a welcome route that prompts you to login. Upon login with churros, on the callback server side you either find an user with this churros Uid and log in with that account OR you can't find one so you create a new one and log in the user. After this is complete $me is set and contains data of the user and a token cookie is also set (it is a writable store)

Edited by Etienne Bardet

Merge request reports