Skip to content

Commit a7cca2b

Browse files
author
Kadi Kraman
committed
Update example to use new api
1 parent 26048f4 commit a7cca2b

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Example/App.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ export default class App extends Component<{}, State> {
5858

5959
refresh = async () => {
6060
try {
61-
const authState = await refresh({
62-
...config,
61+
const authState = await refresh(config, {
6362
refreshToken: this.state.refreshToken
6463
});
6564
console.log('refresh result ', authState);
@@ -77,8 +76,7 @@ export default class App extends Component<{}, State> {
7776

7877
revoke = async () => {
7978
try {
80-
await revoke({
81-
...config,
79+
await revoke(config, {
8280
tokenToRevoke: this.state.accessToken,
8381
sendClientId: true
8482
});

Example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"react": "16.0.0",
1111
"react-native": "0.50.3",
12-
"react-native-app-auth": "git+https://git@github.com/FormidableLabs/react-native-app-auth.git#96f57eab7f0b2388bb2f3c87897ff3decaeebef6",
12+
"react-native-app-auth": "git+https://git@github.com/FormidableLabs/react-native-app-auth.git#b4a33ba178bddf1528066d1b5198d7d01d8693ad",
1313
"styled-components": "^2.2.3"
1414
},
1515
"devDependencies": {

Example/yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3399,9 +3399,9 @@ react-devtools-core@^2.5.0:
33993399
shell-quote "^1.6.1"
34003400
ws "^2.0.3"
34013401

3402-
"react-native-app-auth@git+https://git@github.com/FormidableLabs/react-native-app-auth.git#96f57eab7f0b2388bb2f3c87897ff3decaeebef6":
3402+
"react-native-app-auth@git+https://git@github.com/FormidableLabs/react-native-app-auth.git#b4a33ba178bddf1528066d1b5198d7d01d8693ad":
34033403
version "1.0.1"
3404-
resolved "git+https://git@github.com/FormidableLabs/react-native-app-auth.git#96f57eab7f0b2388bb2f3c87897ff3decaeebef6"
3404+
resolved "git+https://git@github.com/FormidableLabs/react-native-app-auth.git#b4a33ba178bddf1528066d1b5198d7d01d8693ad"
34053405

34063406
react-native@0.50.3:
34073407
version "0.50.3"

0 commit comments

Comments
 (0)