Ultra simple wrapper
See original GitHub issueI’m submitting a…
- Regression (a behavior that used to work and stopped working in a new release)
- Bug report
- Performance issue
- Feature request
- Documentation issue or request
- Other… Please describe:
Browser
N/A
Library version
N/A
Current behavior
I find the design of msal
very confusing. Fundamentally, all most developers want to do is authenticate a user given a config. msal
, in contrast, has a lot of boilerplate and confusing branching/callback/synchronization control flow.
Expected behavior
I would like a single configurable wrapper that handles the boilerplate calls to msal
.
import {authenticate} from "msal";
const minimalConfigurationForMsal = { ... };
const handleUserIdentity: (token: string) => void = ...;
const handleAuthenticationFailure: (error: any) => void = ...;
authenticate(minimalConfigurationForMsal )
.then(handleUserIdentity)
.catch(handleAuthenticationFailure);
How would I implement this authenticate
function?
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
knadh/simplemysql: An ultra simple wrapper for Python ...
An ultra simple wrapper for Python MySQLdb with very basic functionality - GitHub - knadh/simplemysql: An ultra simple wrapper for Python MySQLdb with...
Read more >Tutorial: Simple wrapper development - the SimPhoNy docs!
In this tutorial we will implement a very simple simulation wrapper. It can be used to understand which methods need to be implemented,...
Read more >1200UL Ultra Low Profile Stretch Wrap Machine - Handle It Inc.
This low profile turntable stretch wrap machine offers more flexibility in your wrapping cycle. With its small frame, it fits more easily and...
Read more >Customer reviews: Ultra Bundler Wrapper with Refill Strap
Find helpful customer reviews and review ratings for Ultra Bundler Wrapper with Refill Strap at Amazon.com. Read honest and unbiased product reviews from ......
Read more >SwiftNotes: A super simple wrapper around NotificationCenter
32 votes, 18 comments. https://github.com/sobri909/SwiftNotes I've been meaning to throw this together for over a year, and finally got ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jasonnutter , this react sample is amazing! you should definitely put it in the sample pages. I’m sure it would save people a lot of time.
Closing, as there are no further actionable items.