@setzkasten-cms/auth 0.4.4 → 0.4.5
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.
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/github-oauth.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ function createGitHubAuth(config) {
|
|
|
15
15
|
},
|
|
16
16
|
getLoginUrl() {
|
|
17
17
|
const state = generateState();
|
|
18
|
-
const scopes = ["user:email"];
|
|
18
|
+
const scopes = ["repo", "user:email"];
|
|
19
19
|
const url = github.createAuthorizationURL(state, scopes);
|
|
20
20
|
return url.toString();
|
|
21
21
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@setzkasten-cms/auth",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "OAuth-Authentifizierung für Setzkasten CMS — GitHub + Google",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"arctic": "^3.5.0",
|
|
34
|
-
"@setzkasten-cms/core": "0.4.
|
|
34
|
+
"@setzkasten-cms/core": "0.4.5"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "tsup",
|
package/src/github-oauth.ts
CHANGED
|
@@ -33,7 +33,7 @@ export function createGitHubAuth(config: GitHubOAuthConfig): AuthProvider {
|
|
|
33
33
|
|
|
34
34
|
getLoginUrl() {
|
|
35
35
|
const state = generateState()
|
|
36
|
-
const scopes = ['user:email']
|
|
36
|
+
const scopes = ['repo', 'user:email']
|
|
37
37
|
const url = github.createAuthorizationURL(state, scopes)
|
|
38
38
|
return url.toString()
|
|
39
39
|
},
|