signinwith 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
  3. package/readme.md +1 -1
package/index.js CHANGED
@@ -79,7 +79,7 @@ export const verifySigninGithub = async (config, verificationData) => {
79
79
  const apiHeaders = {
80
80
  'Authorization': `Bearer ${accessToken}`,
81
81
  'Accept': 'application/vnd.github+json',
82
- 'User-Agent': config.userAgent || 'signinwith',
82
+ 'User-Agent': 'signinwith',
83
83
  };
84
84
 
85
85
  const profileRes = await fetch('https://api.github.com/user', { headers: apiHeaders });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signinwith",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Simple and straightforward library for sign in / sign up with thirdparty oAuth services like Google, Facebook, Apple, Discord...",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -125,7 +125,6 @@ const servicesConfig = {
125
125
  clientId: process.env.GITHUB_CLIENT_ID,
126
126
  clientSecret: process.env.GITHUB_CLIENT_SECRET,
127
127
  redirectUri: process.env.GITHUB_REDIRECT_URI,
128
- userAgent: 'your-app-name',
129
128
  },
130
129
  };
131
130
 
@@ -180,6 +179,7 @@ The buttons have the base class `signinwith-button` and provider-specific classe
180
179
  * `signinwith-button-facebook`
181
180
  * `signinwith-button-apple`
182
181
  * `signinwith-button-discord`
182
+ * `signinwith-button-github`
183
183
 
184
184
  You can override these styles in your own CSS. The container in the example uses `signinwith-container` for layout.
185
185