Skip to content

Commit

Permalink
Merge pull request #121 from skyflowapi/SK-958-sdk-docs-typos-in-node…
Browse files Browse the repository at this point in the history
…-python-bearer-token-expiry-block

SK-958: fix typos in node sdk readme file
  • Loading branch information
yaswanth-pula-skyflow authored Aug 22, 2023
2 parents aad6200 + 4dc7a12 commit 6bd0726
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 6bd0726

Please sign in to comment.