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

Fixes for web #324

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Fixes for web #324

merged 1 commit into from
Oct 1, 2024

Conversation

JElgar
Copy link
Member

@JElgar JElgar commented Sep 5, 2024

For now we default to not logging in on web but also fix social media login so we can test in logged in state.

Description

Please include a brief summary of what the issue is and what has been done to solve it

Fixes #<issue_number> or taiga link

Checklist:

Creator

  • The target branch is main
  • I have updated the unreleased section of the change log
  • I have reviewed the 'files changed' tab on github to ensure all changes are as expected
  • I have added someone to review the pr

Reviewer

  • I have verified the above are all completed
  • I have run the code locally to ensure it fufills the requirements of the issue
  • I have reviewed the 'files changed' and commented on any sections which I think are not needed, incorrect or could be improved

After pull

  • If appropriate I have closed the issue/ moved the trello card

For now we default to not logging in on web but also fix social media login
so we can test in logged in state.
if (kIsWeb) {
await _client.auth.signInWithOAuth(
OAuthProvider.google,
redirectTo: 'http://localhost:5000/',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe extract the link to constants?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah this is all a bit of a hack at the moment to get web working. We will need to pull this from the environment once we actually start supporting web

Copy link
Member Author

Choose a reason for hiding this comment

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

I promise to make this betterer in follow ups

@JElgar JElgar merged commit e1ed718 into main Oct 1, 2024
2 checks passed
@JElgar JElgar deleted the web-auth branch October 1, 2024 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants