Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix login logic and signout button #136

Merged
merged 1 commit into from
Sep 2, 2024
Merged

Fix login logic and signout button #136

merged 1 commit into from
Sep 2, 2024

Conversation

archessmn
Copy link
Member

@archessmn archessmn commented Sep 2, 2024

Google login and signing out in dev is currently broken, this should fix that. Google complained about the login_uri containing the redirect search parameter and so instead we use a cookie to store the redirect instead. Signing out would attempt to delete a cookie that was on the wrong domain, as it was not using env.COOKIE_DOMAIN which is used in dev.

@jenkins-ystv
Copy link

jenkins-ystv bot commented Sep 2, 2024

Deployed a preview of this PR to https://pr-136-internal.dev.ystv.co.uk

Copy link
Member

@markspolakovs markspolakovs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems legit

@@ -21,7 +21,7 @@ export default function Nav({ children, user }: NavProps) {
padding="md"
classNames={{ header: styles.header }}
>
<AppShell.Header bg-dark>
<AppShell.Header bg-dark="true">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

@archessmn archessmn merged commit 98939d7 into main Sep 2, 2024
3 of 4 checks passed
@archessmn archessmn deleted the mia/google-login-fix branch September 2, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants