core-api: switch auth provider apiOrigin option to backendUrl

This commit is contained in:
Patrik Oldsberg
2020-08-19 09:21:59 +02:00
parent b569f44a38
commit 645c7f444b
11 changed files with 70 additions and 70 deletions
@@ -63,7 +63,7 @@ export const googleAuthApiFactory = createApiFactory({
deps: { oauthRequestApi: oauthRequestApiRef },
factory: ({ oauthRequestApi }) =>
GoogleAuth.create({
apiOrigin: 'http://localhost:7000',
backendUrl: 'http://localhost:7000',
basePath: '/auth/',
oauthRequestApi,
}),
@@ -74,7 +74,7 @@ export const githubAuthApiFactory = createApiFactory({
deps: { oauthRequestApi: oauthRequestApiRef },
factory: ({ oauthRequestApi }) =>
GithubAuth.create({
apiOrigin: 'http://localhost:7000',
backendUrl: 'http://localhost:7000',
basePath: '/auth/',
oauthRequestApi,
}),
@@ -85,7 +85,7 @@ export const gitlabAuthApiFactory = createApiFactory({
deps: { oauthRequestApi: oauthRequestApiRef },
factory: ({ oauthRequestApi }) =>
GitlabAuth.create({
apiOrigin: 'http://localhost:7000',
backendUrl: 'http://localhost:7000',
basePath: '/auth/',
oauthRequestApi,
}),
@@ -96,7 +96,7 @@ export const auth0AuthApiFactory = createApiFactory({
deps: { oauthRequestApi: oauthRequestApiRef },
factory: ({ oauthRequestApi }) =>
Auth0Auth.create({
apiOrigin: 'http://localhost:7000',
backendUrl: 'http://localhost:7000',
basePath: '/auth/',
oauthRequestApi,
}),