await auth.api.createOIDCProvider({
body: {
domain: 'https://github.com',
providerId: 'github',
issuer: 'https://github.com',
authorizationEndpoint: 'https://github.com/login/oauth/authorize',
tokenEndpoint: 'https://github.com/login/oauth/access_token',
userInfoEndpoint: 'https://api.github.com/user',
scopes: ['user:email', 'read:user', 'read:org'],
clientId: '',
clientSecret: '',
},
});
await auth.api.createOIDCProvider({
body: {
domain: 'https://github.com',
providerId: 'github',
issuer: 'https://github.com',
authorizationEndpoint: 'https://github.com/login/oauth/authorize',
tokenEndpoint: 'https://github.com/login/oauth/access_token',
userInfoEndpoint: 'https://api.github.com/user',
scopes: ['user:email', 'read:user', 'read:org'],
clientId: '',
clientSecret: '',
},
});