-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(env-provider): 🎉 add new env providers
- Loading branch information
1 parent
8597462
commit 886305a
Showing
3 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
import Keycloak from "keycloak-js"; | ||
import { | ||
envKeycloakAuthURL, | ||
envKeycloakClientID, | ||
envKeycloakRealm, | ||
} from "../helpers/envProvider"; | ||
|
||
const keycloak = new Keycloak({ | ||
url: process.env.REACT_APP_KEYCLOAK_URL!, | ||
realm: process.env.REACT_APP_KEYCLOAK_REALM!, | ||
clientId: process.env.REACT_APP_KEYCLOAK_CLIENT_ID!, | ||
url: envKeycloakAuthURL, | ||
realm: envKeycloakRealm, | ||
clientId: envKeycloakClientID, | ||
}); | ||
|
||
export default keycloak; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters