Skip to content
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

[JS] feat: Who bot sample, add user sign in method for end user #911

Merged
merged 16 commits into from
Nov 29, 2023

Conversation

singhk97
Copy link
Collaborator

work in progress

  • Update the sample to include more graph calls and test it

Linked issues

closes: #890 #895

Change details

  • Added Who bot sample
  • Added getTokenOrSignInUser method in Application class. It is meant to be the single catch-all method to sign a user in and get the token. If the user is signed in it simply returns the token. If not, it triggers the sign in flow. Starting the sign in flow will only work if the incoming activity supports it (ex. message, messageExtension/fetch...etc). This method will work in action handlers as well.

Attestation Checklist

  • My code follows the style guidelines of this project

  • I have checked for/fixed spelling, linting, and other errors

  • I have commented my code for clarity

  • I have made corresponding changes to the documentation (we use TypeDoc to document our code)

  • My changes generate no new warnings

  • I have added tests that validates my changes, and provides sufficient test coverage. I have tested with:

    • Local testing
    • E2E testing in Teams
  • New and existing unit tests pass locally with my changes

blackchoey
blackchoey previously approved these changes Nov 29, 2023
lilyydu
lilyydu previously approved these changes Nov 29, 2023
@singhk97 singhk97 dismissed stale reviews from lilyydu and blackchoey via 595da21 November 29, 2023 18:37
@singhk97 singhk97 merged commit 25eeb49 into main Nov 29, 2023
@singhk97 singhk97 deleted the kavin/whobot-fix branch November 29, 2023 18:50
@lilyydu lilyydu mentioned this pull request Apr 4, 2024
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.

[JS] Auth sample - Who bot
4 participants