-
Notifications
You must be signed in to change notification settings - Fork 22
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
Update SLAS helper to require channel_id #165
Conversation
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.
Not related to this change but I see the loginGuestUserPrivate
is async, yet I don't see any await
statement inside the function.
Are we missing an await
statement here?
return slasClient.getAccessToken(options); |
return await slasClient.getAccessToken(options);
@adamraya Someone can correct my javascript knowledge if its incorrect, but I believe that marking a function with async means that return value is automatically a promise, so although we don't use |
Yes you're right, the function marked with async automatically returns a promise. It will not wait for getAccessToken to resolve before returning, but I guess subsequent operations are handled in getAccessToken. |
Starting 7/31/2024, SLAS will start requiring the
channel_id
as a required argument when retrieving an access token withgrant_type: 'client_credentials
for security purposes. This PR updates theloginGuestUserPrivate
SLAS helper function to requirechannel_id
.