Skip to content

Commit

Permalink
eu regional support (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
imayblum authored Jun 25, 2024
1 parent 2a25c14 commit 087b71a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
// ***********************************************

const projectId = Cypress.env('descope_project_id')
const managementKey = Cypress.env('descope_management_key')
const descopeAPIDomain = "api.descope.com"


const managementKey = Cypress.env('descope_management_key')
let descopeAPIDomain = "api.descope.com"
if (projectId.length >= 32) {
const localURL = projectId.substring(1, 5)
descopeAPIDomain = [descopeAPIDomain.slice(0, 4), localURL, ".", descopeAPIDomain.slice(4)].join('')
}

// Define the authorization header
const authHeader = {
Expand Down

0 comments on commit 087b71a

Please sign in to comment.