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

[cli] Use node server default port selection for SSO login server #23505

Merged
merged 3 commits into from Jul 13, 2023

Conversation

wschurman
Copy link
Member

@wschurman wschurman commented Jul 12, 2023

Why

As suggested in expo/eas-cli#1875 (comment), we can just use the default port selection mechanism for starting a listener server for the SSO auth redirect.

Closes ENG-8950.

How

Change code to use default port selection.

Test Plan

nexpo login --sso

(see it logs in)

Checklist

@linear
Copy link

linear bot commented Jul 12, 2023

ENG-8950 [eas cli, expo cli] Start server listen on port 0, and get port after

See if we can let the OS find a free port instead of using freePort package - start server listening on port 0 and then get the port from the addressInfo once the server has started

@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Jul 12, 2023
@wschurman wschurman merged commit 0b7c94a into main Jul 13, 2023
5 checks passed
@wschurman wschurman deleted the @wschurman/port-selection branch July 13, 2023 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants