Skip to content

Commit

Permalink
Merge pull request #40 from Rikthepixel/bug/wrong-cors
Browse files Browse the repository at this point in the history
Add corrected frontend url to secrets
  • Loading branch information
Rikthepixel authored Jan 10, 2024
2 parents 2c6ba4d + 6dcd60f commit 0f183e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-microservices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Set secrets
run: |
kubectl create secret generic gateway-secrets \
--from-literal=ALLOWED_ORIGIN="sq.rikdenbreejen.nl"
--from-literal=ALLOWED_ORIGIN="https://sq.rikdenbreejen.nl"
kubectl create secret generic account-service-secrets \
--from-literal=DATABASE_USER="${{ secrets.DB_ADMIN_USER }}@squaremarket-accounts" \
Expand Down
6 changes: 5 additions & 1 deletion apps/frontend/src/lib/auth/stores/useAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ const useAuth = create<AuthState>((set, get) => ({
},

async logout() {
await auth.logout();
await auth.logout({
logoutParams: {
returnTo: window.origin
}
});
set({ user: null });
},
}));
Expand Down

0 comments on commit 0f183e5

Please sign in to comment.