TartuDen / BMR_Generator

MIT License
0 stars 0 forks source link

Authentication with Google API #19

Open TartuDen opened 1 month ago

TartuDen commented 1 month ago

I will create a new branch "google_auth" where it will be committed. I'll make frontend and proxy server changes implementing this type of auth. @Pomog please create necessary endpoints in API so we can save it in DB.

TartuDen commented 1 month ago

I added front end authentication with Google. @Pomog please proceed with API. the object that is expected is this:

 {
  user_name: 'Den',
  email: 'denver1033@gmail.com',
  ava: 'https://lh3.googleusercontent.com/a/ACg8ocK2bz82lqcsA1oTBIsOb59Y3pVGeZWI76tPwJegyrrad6Nu5g=s96-c',
  role: 'admin'
}

NB! roles are: 1) admin; 2) user;

email - UNIQUE

Pomog commented 3 weeks ago

I am working on user service layer now