π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix(oidc): remove trailling / needed but add manually
DrummyFloyddcc140dca032
diff --git a/apps/backend/src/services/auth/providers/oauth.provider.ts b/apps/backend/src/services/auth/providers/oauth.provider.tsindex 9ce6f2785..301752382 100644--- a/apps/backend/src/services/auth/providers/oauth.provider.ts+++ b/apps/backend/src/services/auth/providers/oauth.provider.ts@@ -60,7 +60,7 @@ export class OauthProvider implements ProvidersInterface {}async getToken(code: string): Promise<string> {- const response = await fetch(`${this.tokenUrl}/`, {+ const response = await fetch(`${this.tokenUrl}`, {method: 'POST',headers: {'Content-Type': 'application/x-www-form-urlencoded',@@ -85,7 +85,7 @@ export class OauthProvider implements ProvidersInterface {}async getUser(access_token: string): Promise<{ email: string; id: string }> {- const response = await fetch(`${this.userInfoUrl}/`, {+ const response = await fetch(`${this.userInfoUrl}`, {headers: {Authorization: `Bearer ${access_token}`,Accept: 'application/json',