File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
src/app/shared/dia-backend/auth Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,18 @@ export class DiaBackendAuthService {
128
128
) ;
129
129
}
130
130
131
+ queryJWTToken$ ( ) {
132
+ return defer ( ( ) => this . getAuthHeaders ( ) ) . pipe (
133
+ concatMap ( headers => {
134
+ return this . httpClient . post < QueryJWTTokenResponse > (
135
+ `${ BASE_URL } /api/v3/auth/qjwt/` ,
136
+ { } ,
137
+ { headers }
138
+ ) ;
139
+ } )
140
+ ) ;
141
+ }
142
+
131
143
private readUser$ ( ) {
132
144
return defer ( ( ) => this . getAuthHeaders ( ) ) . pipe (
133
145
concatMap ( headers =>
@@ -413,6 +425,11 @@ export interface LoginResponse {
413
425
readonly auth_token : string ;
414
426
}
415
427
428
+ export interface QueryJWTTokenResponse {
429
+ readonly access : string ;
430
+ readonly refresh : string ;
431
+ }
432
+
416
433
export interface ReadUserResponse {
417
434
readonly username : string ;
418
435
readonly email : string ;
You can’t perform that action at this time.
0 commit comments