forked from mahomahoxd/react-native-login-keycloak
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING - automatic credential management (#6)
* BREAKING - automatic credential management * code refactoring * removed unused argument * fixed arguments order + updated README) * added a line in README
- Loading branch information
Showing
6 changed files
with
87 additions
and
36 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
const CONFIG = '@keyCloakConfig'; | ||
const CREDENTIALS = '@credentials'; | ||
const GET = 'GET'; | ||
const POST = 'POST'; | ||
const URL = 'url'; | ||
const TOKENS = '@tokens'; | ||
const CONFIG = '@keyCloakConfig'; | ||
const URL = 'url'; | ||
|
||
export { CONFIG, GET, POST, TOKENS, URL }; | ||
export { CONFIG, CREDENTIALS, GET, POST, TOKENS, URL }; |
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
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,12 +1,13 @@ | ||
import { apiLogin, login, logout, refreshToken, retrieveUserInfo } from './Core'; | ||
import { keycloakUILogin, login, logout, refreshLogin, refreshToken, retrieveUserInfo } from './Core'; | ||
|
||
export { default as TokenStorage } from './TokenStorage'; | ||
export { TokensUtils } from './Utils'; | ||
|
||
export default { | ||
apiLogin, | ||
keycloakUILogin, | ||
login, | ||
logout, | ||
refreshLogin, | ||
refreshToken, | ||
retrieveUserInfo, | ||
}; |