Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions .github/workflows/tests-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ env:
}
ITESTS_NAMES_SHORT: |
{
"mods-preview": "OSS Standalone and all preview modules",
"oss-st-5-pass": "OSS Standalone v5 with admin pass required",
"oss-st-6-tls-auth": "OSS Standalone v6 with TLS auth required",
"oss-clu-tls": "OSS Cluster with TLS enabled",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ export class CloudUserApiService {
try {
const session = await this.sessionService.getSession(sessionMetadata.sessionId);

if (!session?.refreshToken) {
throw new CloudApiUnauthorizedException();
}

if (!isValidToken(session?.accessToken)) {
if (!session?.refreshToken) {
throw new CloudApiUnauthorizedException();
}

await this.cloudAuthService.renewTokens(sessionMetadata, session?.idpType, session?.refreshToken);
}
} catch (e) {
Expand Down
Loading