feat(auth): implement Google OAuth2 authentication flow #211

Merged
csimonis merged 6 commits from feat/google-oauth into main 2025-05-21 10:00:57 +00:00
5 changed files with 14 additions and 18 deletions
Showing only changes of commit 52de53878e - Show all commits

View file

@ -39,7 +39,7 @@ export const routes: Routes = [
import('./feature/auth/oauth2/oauth2-callback.component').then(
(m) => m.OAuth2CallbackComponent
),
data: { provider: 'github' }
data: { provider: 'github' },
},
{
path: 'oauth2/callback/google',
@ -47,7 +47,7 @@ export const routes: Routes = [
import('./feature/auth/oauth2/oauth2-callback.component').then(
(m) => m.OAuth2CallbackComponent
),
data: { provider: 'google' }
data: { provider: 'google' },
},
{
path: 'game/blackjack',

View file

@ -111,11 +111,7 @@
(click)="loginWithGoogle()"
class="w-full py-2.5 px-4 rounded flex items-center justify-center bg-white hover:bg-gray-100 text-gray-800 transition-colors"
>
<svg
class="h-5 w-5 mr-2"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<svg class="h-5 w-5 mr-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
fill="#EA4335"
d="M5.266 9.765A7.077 7.077 0 0 1 12 4.909c1.69 0 3.218.6 4.418 1.582L19.91 3C17.782 1.145 15.055 0 12 0 7.27 0 3.198 2.698 1.24 6.65l4.026 3.115Z"