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

feat: Handle cli redirect strategy #24

Merged
merged 4 commits into from
Jan 11, 2024
Merged

feat: Handle cli redirect strategy #24

merged 4 commits into from
Jan 11, 2024

Conversation

Ehesp
Copy link
Member

@Ehesp Ehesp commented Dec 20, 2023

Description

Fixes: https://github.com/invertase/dart_globe/issues/79

Currently the CLI completes login when a fetch call is made back to the running server, with the session token.

In some environments, such as Safari or when ad-blockers are running, this request is blocked which prevents login.

This change insteads adds a stategy search param to the callback URL provided by the CLI. If the strategy is redirect, the frontend login flow will instead redirect to the provided callback rather than trigger an async fetch.

Note the frontend change for this is here.

Type of Change

  • feat -- New feature (non-breaking change which adds functionality)
  • 🛠️ fix -- Bug fix (non-breaking change which fixes an issue)
  • ! -- Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 refactor -- Code refactor
  • ci -- Build configuration change
  • 📝 docs -- Documentation
  • 🗑️ chore -- Chore

@Ehesp Ehesp changed the title feat: handle cli redirect fix: handle cli redirect Dec 20, 2023
@Ehesp Ehesp changed the title fix: handle cli redirect fix: Handle cli redirect Dec 21, 2023
@Ehesp Ehesp changed the title fix: Handle cli redirect feat: Handle cli redirect strategy Dec 24, 2023
@Salakar Salakar merged commit e2d3429 into main Jan 11, 2024
7 checks passed
@Salakar Salakar deleted the feat/cli-redirect branch January 11, 2024 12:14
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