feat(githubAuth): make default scopes configurable

This commit is contained in:
Jesko Steinberg
2020-10-01 14:56:57 +02:00
parent caeb82b3d0
commit b79017fd33
3 changed files with 23 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
---
'@backstage/core': minor
'@backstage/core-api': minor
---
Updated the `GithubAuth.create` method to configure the default scope of the Github Auth Api. As a result the
default scope is configurable when overwriting the Core Api in the app.
```
GithubAuth.create({
discoveryApi,
oauthRequestApi,
defaultScopes: ['read:user', 'repo'],
}),
```