Skip to content

Commit

Permalink
fix: parse quota claim as number
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietzler committed Nov 16, 2024
1 parent 4b5657c commit 90b00b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export class AuthService extends BaseService {
const storageQuota = this.getClaim(profile, {
key: storageQuotaClaim,
default: defaultStorageQuota,
isValid: (value: unknown) => isNumber(value) && value >= 0,
isValid: (value: unknown) => isNumber(value) && Number(value) >= 0,
});

const userName = profile.name ?? `${profile.given_name || ''} ${profile.family_name || ''}`;
Expand Down

0 comments on commit 90b00b4

Please sign in to comment.