Skip to content

Commit

Permalink
Update auth token request URL
Browse files Browse the repository at this point in the history
  • Loading branch information
rokrak1 committed Feb 28, 2024
1 parent 5554dd5 commit 901a3f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function isAuthTokenSet(): boolean {
export async function requestAuthToken(clientId: string, clientSecret: string): Promise<any> {
const response = await axios({
method: 'post',
url: 'https://services.sentinel-hub.com/oauth/token',
url: 'https://services.sentinel-hub.com/auth/realms/main/protocol/openid-connect/token',
headers: { 'content-type': 'application/x-www-form-urlencoded' },
data: `grant_type=client_credentials&client_id=${encodeURIComponent(
clientId,
Expand Down

0 comments on commit 901a3f8

Please sign in to comment.