Revert "Revert "add refresh token to cli""

This reverts commit 6b0e0f70d2.
This commit is contained in:
Maidul Islam
2023-06-14 17:15:37 -04:00
parent 0aa9390ece
commit ccf0877b81
6 changed files with 70 additions and 22 deletions

View File

@@ -281,6 +281,7 @@ type GetLoginTwoV2Response struct {
ProtectedKey string `json:"protectedKey"`
ProtectedKeyIV string `json:"protectedKeyIV"`
ProtectedKeyTag string `json:"protectedKeyTag"`
RefreshToken string `json:"RefreshToken"`
}
type VerifyMfaTokenRequest struct {
@@ -314,3 +315,7 @@ type VerifyMfaTokenErrorResponse struct {
Application string `json:"application"`
Extra []interface{} `json:"extra"`
}
type GetNewAccessTokenWithRefreshTokenResponse struct {
Token string `json:"token"`
}