Skip to content

Commit

Permalink
Fix dropbox provider (#1323)
Browse files Browse the repository at this point in the history
  • Loading branch information
NuttyShrimp authored Jan 7, 2024
1 parent 83960e2 commit 5685ab9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/oauth/src/providers/dropbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class DropboxAuth<_Auth extends Auth = Auth> extends OAuth2ProviderAuth<
access_token: string;
expires_in: number;
refresh_token?: string;
}>(code, "https://www.dropbox.com/oauth2/token", {
}>(code, "https://api.dropboxapi.com/oauth2/token", {
clientId: this.config.clientId,
redirectUri: this.config.redirectUri,
clientPassword: {
Expand Down Expand Up @@ -106,6 +106,7 @@ const getDropboxUser = async (accessToken: string): Promise<DropboxUser> => {
const request = new Request(
"https://api.dropboxapi.com/2/users/get_current_account",
{
method: "POST",
headers: {
Authorization: authorizationHeader("bearer", accessToken)
}
Expand Down

0 comments on commit 5685ab9

Please sign in to comment.