Skip to content

Commit a8b9550

Browse files
committed
Add JWT typ header
The 'typ' header is no longer included by default with the ruby-jwt gem. See this issue: jwt/ruby-jwt#233
1 parent 0aa8f0f commit a8b9550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bigcommerce/resources/customers/customer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def login_token(config: Bigcommerce.config)
4444
'customer_id' => id
4545
}
4646

47-
JWT.encode(payload, config.client_secret, 'HS256')
47+
JWT.encode(payload, config.client_secret, 'HS256', { typ: 'JWT' })
4848
end
4949
end
5050
end

0 commit comments

Comments
 (0)