mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2025-04-28 01:15:35 +02:00
24 lines
627 B
JavaScript
24 lines
627 B
JavaScript
import { OAuth2Provider } from './oauth2.esm.js';
|
|
import '../helpers.esm.js';
|
|
import './oauth2.base.esm.js';
|
|
import './base.esm.js';
|
|
|
|
const defaultConfig = {
|
|
id: "google",
|
|
scope: ["openid", "profile", "email"],
|
|
accessTokenUrl: "https://accounts.google.com/o/oauth2/token",
|
|
authorizationUrl: "https://accounts.google.com/o/oauth2/auth",
|
|
profileUrl: "https://openidconnect.googleapis.com/v1/userinfo"
|
|
};
|
|
class GoogleOAuth2Provider extends OAuth2Provider {
|
|
constructor(config) {
|
|
super({
|
|
...defaultConfig,
|
|
...config
|
|
});
|
|
}
|
|
}
|
|
|
|
export { GoogleOAuth2Provider };
|
|
//# sourceMappingURL=google.esm.js.map
|