Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
readme.md refactor

Co-authored-by: Diana Lau <[email protected]>
  • Loading branch information
madaky and dhmlau committed Jun 23, 2020
1 parent ecd6634 commit 0fe795f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions extensions/authentication-jwt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ The code snippet for whoAmI function:
}
```

### End points with refresh token
### Endpoints with refresh token

To add refresh token mechanism in your app. you have to call the following
interrceptor.
To add refresh token mechanism in your app, you have to call the following
interceptor.

1. ('refresh-token-generate') : to generate the refresh token and access token
1. `refresh-token-generate` : to generate the refresh token and access token
when user logins to your app with provided credentials.

```ts
Expand All @@ -203,8 +203,8 @@ async refreshLogin(
}
```

2. ('refresh-token-grant'): to genearate the access token by the refresh token
obtained from the the last login end-point.
2. `refresh-token-grant`: to generate the access token by the refresh token
obtained from the the last login endpoint.

```ts
@intercept('refresh-token-grant')
Expand Down

0 comments on commit 0fe795f

Please sign in to comment.