Skip to content

Commit df4971a

Browse files
committed
fix(reddit): fixed reddit missing refresh token for oauth
1 parent c65384d commit df4971a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/lib/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ export const auth = betterAuth({
831831
providerId: 'reddit',
832832
clientId: env.REDDIT_CLIENT_ID as string,
833833
clientSecret: env.REDDIT_CLIENT_SECRET as string,
834-
authorizationUrl: 'https://www.reddit.com/api/v1/authorize',
834+
authorizationUrl: 'https://www.reddit.com/api/v1/authorize?duration=permanent',
835835
tokenUrl: 'https://www.reddit.com/api/v1/access_token',
836836
userInfoUrl: 'https://oauth.reddit.com/api/v1/me',
837837
scopes: ['identity', 'read'],

0 commit comments

Comments
 (0)