Skip to content

Add support for OAuth login #1122

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

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix write
Signed-off-by: Alexis Rico <[email protected]>
  • Loading branch information
SferaDev committed Aug 17, 2023
commit ef9148ee303c661605a277d4d0454776ecabfa75
5 changes: 1 addition & 4 deletions cli/src/credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ async function writeCredentials(credentials: CredentialsDictionary) {

export async function saveCredentials(name: string, profile: Credential) {
const credentials = await readCredentialsDictionary();
credentials[name] = {
apiKey: profile.apiKey,
...Object.fromEntries(Object.entries(profile).filter(([, value]) => value))
};
credentials[name] = Object.fromEntries(Object.entries(profile).filter(([, value]) => !!value));
await writeCredentials(credentials);
}

Expand Down