question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ultra simple wrapper

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
chriskuechcommented, Jul 15, 2019

@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.

0reactions
jasonnuttercommented, Jul 16, 2019

Closing, as there are no further actionable items.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found