fix: Dropbox OIDC requires POST to userinfo endpoint (#8282)

This commit is contained in:
Tom Moor
2025-01-28 20:54:04 -05:00
committed by GitHub
parent 8e4844fd84
commit b666d8f13d
4 changed files with 22 additions and 5 deletions
+6 -2
View File
@@ -68,9 +68,13 @@ export class StateStore {
};
}
export async function request(endpoint: string, accessToken: string) {
export async function request(
method: "GET" | "POST",
endpoint: string,
accessToken: string
) {
const response = await fetch(endpoint, {
method: "GET",
method,
headers: {
Authorization: `Bearer ${accessToken}`,
"Content-Type": "application/json",