Skip to content

Commit ecf6789

Browse files
fix sentry comments
1 parent 5c56a3f commit ecf6789

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/organization/integrations/integration-platform/public-integration.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,14 @@ def manual_token_refresh(install_id):
130130
'sub': client_id,
131131
'iat': iat,
132132
'exp': exp,
133-
'jti': uuid.uuid4(),
133+
'jti': str(uuid.uuid4()),
134134
}
135135
jwt_token = jwt.encode(claims, client_secret, algorithm="HS256")
136-
headers = jwt.authorization_header(jwt_token)
136+
headers = {
137+
'Authorization': f'Bearer {jwt_token}',
138+
'Content-Type': 'application/json'
139+
}
140+
137141

138142
payload = {
139143
'grant_type': 'urn:sentry:params:oauth:grant-type:jwt-bearer',

0 commit comments

Comments
 (0)