Skip to content

Conversation

lmammino
Copy link
Member

@lmammino lmammino commented Sep 7, 2019

Closes #27

Checklist

  • run npm run test and npm run benchmark
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message and code follows Code of conduct

index.js Outdated
if (startRedirectPath) {
fastify.get(startRedirectPath, startRedirectHandler)
fastify.decorate('getAccessTokenFromAuthorizationCodeFlow', getAccessTokenFromAuthorizationCodeFlow)
fastify.decorate('getNewAccessTokenWithRefreshToken', getNewAccessTokenWithRefreshToken)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getNewAccessTokenWithRefreshToken => getNewAccessTokenFromRefreshToken ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "using" is even more accurate. What do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated and also added some more docs explaining the role of the 2 decorators in the README.

@lmammino lmammino changed the title Implemented decorator getNewAccessTokenWithRefreshToken Implemented decorator getNewAccessTokenUsingRefreshToken Sep 8, 2019
Copy link
Member

@allevo allevo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Fixed spacing in README
@allevo allevo merged commit 9af5862 into fastify:master Sep 8, 2019
@allevo
Copy link
Member

allevo commented Sep 8, 2019

published

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support method to simplify token refresh

2 participants