mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2025-07-30 13:46:20 +02:00
✨ Create apiKey
and apiSecret
aliases for Reddit provider
This commit is contained in:
parent
9a459070c4
commit
233197ff9a
@ -2,6 +2,8 @@ import { OAuth2Provider, OAuth2ProviderConfig } from "./oauth2";
|
||||
|
||||
interface RedditOAuth2ProviderConfig extends OAuth2ProviderConfig {
|
||||
duration?: "temporary" | "permanent";
|
||||
apiKey: string;
|
||||
apiSecret: string;
|
||||
}
|
||||
|
||||
const redditProfileHandler = ({
|
||||
@ -65,6 +67,8 @@ export class RedditOAuth2Provider extends OAuth2Provider<RedditOAuth2ProviderCon
|
||||
super({
|
||||
...defaultConfig,
|
||||
...config,
|
||||
clientId: config.apiKey,
|
||||
clientSecret: config.apiSecret,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user