Skip to content

Commit

Permalink
🦺 Feat: update auth service
Browse files Browse the repository at this point in the history
  • Loading branch information
Sye0w committed Oct 3, 2024
1 parent e60c4d9 commit cc122da
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
3 changes: 0 additions & 3 deletions src/app/services/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,10 @@ export class AuthService {
throw new Error('No authenticated user found');
}
try {
// Update Auth profile
await updateProfile(currentUser, {
displayName: user.username,
photoURL: user.image
});

// Update email if changed
if (currentUser.email !== user.email) {
await updateEmail(currentUser, user.email);
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/views/auth/auth/auth.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<main>
<div>
<h2>Fireblog</h2>
<h2><span>Fire</span>blog</h2>
<router-outlet/>

</div>
Expand Down
17 changes: 10 additions & 7 deletions src/app/views/auth/auth/auth.component.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
@use '../../../../partials/_variables.scss' as *;
@use '../../../../partials/mixins' as *;

main{
main {
height: 100%;
width: 100%;
display: flex;
justify-content: center;

h2{
color: $blueviolet;
font-family: $titlefont;
font-size: 2rem;

h2 {
@include title-text;
span {
@include gradient-text;
}
}

div{
margin-top: 7rem;
div {
margin-top: 3.75rem;
display: flex;
flex-direction: column;
align-items: center;
Expand Down

0 comments on commit cc122da

Please sign in to comment.