Skip to content

Commit

Permalink
fix(plugins/core): empty scope listing
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed Sep 14, 2023
1 parent 47746ad commit 2656ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/plugins/core/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default async function({login, q}, {conf, data, rest, graphql, plugins, q

//Token scopes
try {
computed.token.scopes = conf.settings.notoken ? [] : (await rest.request("HEAD /")).headers["x-oauth-scopes"].split(", ")
computed.token.scopes = conf.settings.notoken ? [] : (await rest.request("HEAD /")).headers["x-oauth-scopes"]?.split(", ") ?? []
}
catch (error) {
console.debug(error)
Expand Down

0 comments on commit 2656ecc

Please sign in to comment.