Skip to content

Commit e9e7ed9

Browse files
committed
Solve lint issues in Auth.ts
1 parent 961e7e9 commit e9e7ed9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/service/worker/runtime/graphql/schema/schemaDirectives

src/service/worker/runtime/graphql/schema/schemaDirectives/Auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface AuthDirectiveArgs {
1010
readonly resourceCode: string
1111
}
1212

13-
type VtexIdParsedToken = {
13+
interface VtexIdParsedToken {
1414
user: string
1515
account: string
1616
}
@@ -51,7 +51,7 @@ async function auth (ctx: ServiceContext, authArgs: AuthDirectiveArgs): Promise<
5151
}
5252

5353
const parsedToken = await parseIdToken(ctx.vtex.authToken, vtexIdToken)
54-
if (!parsedToken || parsedToken.account != ctx.vtex.account) {
54+
if (!parsedToken || parsedToken.account !== ctx.vtex.account) {
5555
throw new AuthenticationError('Could not find user specified by VtexIdclientAutCookie.')
5656
}
5757

0 commit comments

Comments
 (0)