Skip to content

Commit 2656ecc

Browse files
committed
fix(plugins/core): empty scope listing
1 parent 47746ad commit 2656ecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/plugins/core/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export default async function({login, q}, {conf, data, rest, graphql, plugins, q
125125

126126
//Token scopes
127127
try {
128-
computed.token.scopes = conf.settings.notoken ? [] : (await rest.request("HEAD /")).headers["x-oauth-scopes"].split(", ")
128+
computed.token.scopes = conf.settings.notoken ? [] : (await rest.request("HEAD /")).headers["x-oauth-scopes"]?.split(", ") ?? []
129129
}
130130
catch (error) {
131131
console.debug(error)

0 commit comments

Comments
 (0)