-
Notifications
You must be signed in to change notification settings - Fork 6
Create new Pangea token type #1340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Accept Pangea token type in service constructors. Type must be 'pangea_token' or a raw string.
|
Add a release note to |
Co-authored-by: Kenan Yildirim <kenan.yildirim@pangea.cloud>
pangea-andrest
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor comment but approved anyway
|
|
||
| this.serviceName = serviceName; | ||
| this.token = token; | ||
| if (typeof token === "string") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't be better to move this whole logic into a function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's only used here, we can break it out later if more use comes. I'm not a fan of early abstraction, generally abstract only a rule of 3.
Accept Pangea token type in service constructors. Type must be 'pangea_token' or a raw string.