Skip to content

Commit ba62370

Browse files
authored
Merge pull request #187 from Vafilor/feat/revert.jwt
feat: revert jwt api auth changes
2 parents 9b4fa67 + 2c6634b commit ba62370

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/api/model/isValidTokenResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
export interface IsValidTokenResponse {
1515
domain?: string;
16-
jwtToken?: string;
16+
token?: string;
1717
username?: string;
1818
}
1919

src/app/auth/login/login.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ export class LoginComponent implements OnInit {
7171
this.apiAuthService.isValidToken({
7272
token: this.tokenInput.value,
7373
username: this.usernameInput.value
74-
})
75-
.subscribe(res => {
76-
this.authService.setLogin(res.username, res.jwtToken, res.domain);
74+
}).subscribe(res => {
75+
this.authService.setLogin(this.usernameInput.value, res.token);
7776

7877
this.namespaceTracker.getNamespaces();
7978

0 commit comments

Comments
 (0)