From ca15bc2492d4c4d039d2969d3e518592d894acff Mon Sep 17 00:00:00 2001 From: Yassine Zeriouh Date: Sat, 27 Jan 2024 00:58:19 +0100 Subject: [PATCH] Fix Atlassian provider (#1353) --- .auri/$ygs60su4.md | 6 ++++++ packages/oauth/src/providers/atlassian.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .auri/$ygs60su4.md diff --git a/.auri/$ygs60su4.md b/.auri/$ygs60su4.md new file mode 100644 index 000000000..9b5374715 --- /dev/null +++ b/.auri/$ygs60su4.md @@ -0,0 +1,6 @@ +--- +package: "@lucia-auth/oauth" +type: "patch" +--- + +Fixed the endpoint used for exchanging authorization codes for the Atlassian provider diff --git a/packages/oauth/src/providers/atlassian.ts b/packages/oauth/src/providers/atlassian.ts index 36182cce9..c7c86f3fa 100644 --- a/packages/oauth/src/providers/atlassian.ts +++ b/packages/oauth/src/providers/atlassian.ts @@ -67,7 +67,7 @@ export class AtlassianAuth< access_token: string; expires_in: number; refresh_token?: string; - }>(code, "https://auth.atlassian.com/token", { + }>(code, "https://auth.atlassian.com/oauth/token", { clientId: this.config.clientId, redirectUri: this.config.redirectUri, clientPassword: {