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: Implement login manager and login/logout commands #910

Merged
merged 15 commits into from
Oct 21, 2020
2 changes: 1 addition & 1 deletion src/commands/auth/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class Login extends Command {

let loginData: LoginRecord | undefined
if (refreshToken) {
loginData = { refreshToken }
loginData = { refreshToken, expires: Date.now() / 1000 + 60 }
mmorhun marked this conversation as resolved.
Show resolved Hide resolved
} else if (username) {
let password = flags[PASSWORD_KEY]
if (!password) {
Expand Down