From 0fe795fae5659f95feeec8fa062697cde3b96736 Mon Sep 17 00:00:00 2001 From: Madaky <17172989+madaky@users.noreply.github.com> Date: Fri, 29 May 2020 10:54:26 +0530 Subject: [PATCH] Apply suggestions from code review readme.md refactor Co-authored-by: Diana Lau --- extensions/authentication-jwt/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extensions/authentication-jwt/README.md b/extensions/authentication-jwt/README.md index 5f14751f8928..967769ddc7cc 100644 --- a/extensions/authentication-jwt/README.md +++ b/extensions/authentication-jwt/README.md @@ -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 @@ -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')