Skip to content

Commit

Permalink
SK-958: fix typos in node sdk readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
skyflow-amith committed Aug 21, 2023
1 parent aad6200 commit 4dc7a12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ let bearerToken = '';
function getSkyflowBearerToken() {
return new Promise(async (resolve, reject) => {
try {
if (isExpired(bearerToken)) resolve(bearerToken);
if (!isExpired(bearerToken)) resolve(bearerToken);
else {
let response = await generateBearerTokenFromCreds(
JSON.stringify(credentials)
Expand Down Expand Up @@ -197,7 +197,7 @@ function getSkyflowBearerToken() {
const options = {
ctx: 'CONTEXT_ID',
}
if (isExpired(bearerToken)) resolve(bearerToken);
if (!isExpired(bearerToken)) resolve(bearerToken);
else {
let response = await generateBearerTokenFromCreds(
JSON.stringify(credentials),
Expand Down Expand Up @@ -281,7 +281,7 @@ function getSkyflowBearerToken() {
const options = {
roleIDs: ['ROLE_ID1', 'ROLE_ID2'],
};
if (isExpired(bearerToken)) resolve(bearerToken);
if (!isExpired(bearerToken)) resolve(bearerToken);
else {
let response = await generateBearerTokenFromCreds(
JSON.stringify(credentials),
Expand Down

0 comments on commit 4dc7a12

Please sign in to comment.