Skip to content

Commit

Permalink
Added spacing between logo and theme toggle on header
Browse files Browse the repository at this point in the history
  • Loading branch information
talentedunicorn committed Jan 3, 2025
1 parent fe1a3f9 commit 545d1e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@
.Header {
align-self: flex-end;
display: flex;
gap: 2rem;
flex-direction: row-reverse;
padding-top: 1rem;
}
.Logo {
Expand Down
6 changes: 3 additions & 3 deletions src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { user, isLoggedin, token } from './stores';
// token's actual expiration time.
const refreshRate = 10 * 60 * 60 * 1000;

// let auth0: Auth0Client;
const redirect_uri = window.location.origin;

export const initAuth0Client = async () => {
return await createAuth0Client({
Expand Down Expand Up @@ -41,7 +41,7 @@ export const checkAuth = async (auth0: Auth0Client) => {
// in Auth0 config, otherwise you will soon start throwing stuff!
const { id_token } = await auth0.getTokenSilently({
authorizationParams: {
redirect_uri: window.location.origin
redirect_uri
},
detailedResponse: true
});
Expand All @@ -53,7 +53,7 @@ export const checkAuth = async (auth0: Auth0Client) => {
intervalId = setInterval(async () => {
const { id_token } = await auth0.getTokenSilently({
authorizationParams: {
redirect_uri: window.location.origin
redirect_uri
},
detailedResponse: true
});
Expand Down

0 comments on commit 545d1e3

Please sign in to comment.