Skip to content

Commit d8fafdf

Browse files
VIA-537 AS/SB Update issuer in provider.ts to use href of URL from config
1 parent d490815 commit d8fafdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/api/auth/[...nextauth]/provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const NHSLoginAuthProvider = async (): Promise<OIDCConfig<Profile>> => {
1010
id: NHS_LOGIN_PROVIDER_ID,
1111
name: "NHS Login Auth Provider",
1212
type: "oidc",
13-
issuer: `${await config.NHS_LOGIN_URL}`,
13+
issuer: (await config.NHS_LOGIN_URL).href,
1414
clientId: await config.NHS_LOGIN_CLIENT_ID,
1515
wellKnown: `${await config.NHS_LOGIN_URL}/.well-known/openid-configuration`,
1616
authorization: {

0 commit comments

Comments
 (0)