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

feat: add sdk for web front-only app #47

Merged
merged 2 commits into from
Sep 14, 2023
Merged

Conversation

leo220yuyaodog
Copy link
Member

@leo220yuyaodog leo220yuyaodog commented Sep 8, 2023

PKCE flow is for the public client like desktop app and spa.
Add functions:
exchangeForAccessToken()
getUserInfo(accessToken: string)

@casbin-bot
Copy link

@seriouszyx @ComradeProgrammer @Resulte please review

@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Merging #47 (87cb44d) into master (3ac4ed3) will increase coverage by 1.67%.
The diff coverage is 31.57%.

@@            Coverage Diff             @@
##           master      #47      +/-   ##
==========================================
+ Coverage   20.65%   22.33%   +1.67%     
==========================================
  Files           2        2              
  Lines          92      103      +11     
  Branches       20       22       +2     
==========================================
+ Hits           19       23       +4     
- Misses         73       74       +1     
- Partials        0        6       +6     
Files Changed Coverage Δ
src/sdk.ts 20.79% <31.57%> (+1.90%) ⬆️

@hsluoyz hsluoyz merged commit e25d27d into casdoor:master Sep 14, 2023
3 checks passed
@github-actions
Copy link

🎉 This PR is included in version 0.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants