mirror of
https://github.com/outline/outline.git
synced 2026-05-08 02:50:30 -05:00
fix: Dropbox OIDC requires POST to userinfo endpoint (#8282)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user