Skip to content

Commit

Permalink
Merge branch 'bose/2592' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
BorghildSelle committed Nov 1, 2024
2 parents dd744cf + b32c3cb commit d3b071f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sanityv3/plugins/asset-source-fotoware/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export const getAuthURL = (requestState: string): string | false => {

const CLIENT_ID = process.env.SANITY_STUDIO_FOTOWARE_CLIENT_ID
const TENANT_URL = process.env.SANITY_STUDIO_FOTOWARE_TENANT_URL

return `${TENANT_URL}/fotoweb/oauth2/authorize?response_type=token&client_id=${CLIENT_ID}&state=${requestState}`
const REDIRECT_URI = process.env.SANITY_STUDIO_FOTOWARE_REDIRECT_ORIGIN
return `${TENANT_URL}/fotoweb/oauth2/authorize?response_type=token&client_id=${CLIENT_ID}&state=${requestState}&redirect_uri=${REDIRECT_URI}`
}

export const getAccessToken = (): string | false => {
Expand Down

0 comments on commit d3b071f

Please sign in to comment.