Skip to content

Commit 6623d11

Browse files
committed
fix: set alg in auth if not set by user
1 parent aac3682 commit 6623d11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/server/auth.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ async function getOIDCClient(settings: OIDCSettings): Promise<BaseClient> {
115115

116116
const alg_supported = issuer.metadata["id_token_signing_alg_values_supported"];
117117

118-
if (Array.isArray(alg_supported) && !alg_supported.includes("RS256")) {
118+
if (Array.isArray(alg_supported)) {
119119
client_config.id_token_signed_response_alg ??= alg_supported[0];
120120
}
121+
121122
return new issuer.Client(client_config);
122123
}
123124

0 commit comments

Comments
 (0)