Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFe91 authored Oct 1, 2020
1 parent 882dc84 commit 10207c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import Keycloak from 'react-native-keycloak-plugin';
From that variable, you have access to all the util methods the plugin implements.

## API
### Keycloak.login
### Keycloak.keycloakUILogin

```js
Keycloak.keycloakUILogin(conf, callback, scope)
Expand Down Expand Up @@ -87,7 +87,7 @@ response.tokens = {
}
```

### Keycloak.apiLogin
### Keycloak.login

```js
Keycloak.login(conf, username, password, [scope = 'info'])
Expand All @@ -101,6 +101,8 @@ Method arguments:
- _password_: The password associated to the above username
- _scope_: same behavior as above

### Keycloak.refreshLogin

```js
Keycloak.refreshLogin([scope = 'info'])
.then((response) => /* Your resolve */ )
Expand Down

0 comments on commit 10207c7

Please sign in to comment.