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.

[Bug] Script error “Object doesn’t support property or method ‘isInteger’” appears when trying to sign in.

See original GitHub issue

Description We are using the Microsoft.Identity.Client nuget package for user authentication in our WPF desktop client. The actual problem is that the script error “Object doesn’t support property or method ‘isInteger’” appears during sign-in.

Which version of MSAL.NET are you using? Tried both versions 4.36.1 and 4.46.0.

Platform .NET Framework 4.6.1

Steps to reproduce

  1. Open “Sign in to your account” window and enter your password.

  2. Click “Sign in” button (user is navigated to the “Help us protect your account” page). 1

  3. Click “Next” button on “Help us protect your account” page. 2

Expected behavior The user should be asked to install Microsoft Authenticator and be able to setup MFA.

Actual behavior The script error “Object doesn’t support property or method ‘isInteger’” appears (see the screenshot below). The error is thrown in main.486a7dba.js. 3

Is this a new or existing app? The app is in production, I haven’t upgraded MSAL (current version 4.36.1), but started seeing this issue.

Repro

IPublicClientApplication publicClientApplication = PublicClientApplicationBuilder
	.Create(someClientId)
	.WithRedirectUri("msal{ClientId}://auth")
	.Build(); 
	
AcquireTokenInteractiveParameterBuilder builder = publicClientApplication
	.AcquireTokenInteractive(new string[] { "user.read" })
	.WithPrompt(Prompt.ForceLogin)
	.WithLoginHint(someEmail);

AuthenticationResult authenticationResult = await builder.ExecuteAsync();

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
bgavrilMScommented, Aug 22, 2022

The solution here is to use WAM: https://aka.ms/msal-net-wam for AAD accounts. For B2C accounts, Microsoft.Identity.Client.Desktop has WebView2 support.

0reactions
bgavrilMScommented, Dec 22, 2022

Cl,osing as external.

Read more comments on GitHub >

github_iconTop Results From Across the Web

object doesn't support property or method isinteger
object doesn't support property or method isinteger. Help me please. When install outlook 2016, i have error. Image. This thread is locked.
Read more >
Object doesn't support property or method 'isinteger' when ...
Error message Object doesn't support property or method 'isinteger' is displayed when I attempt. User with Basic license was able to access ...
Read more >
Getting a script error when trying to log in to apps on server?
I am getting a Script error when I try to log into any office 365 product ... Error: object doesn't support property or...
Read more >
Error on Sign In
An error has occurred in the script on this page. Line: 2. Char: 673309. Error: Object doesn't support property or method 'isInteger'.
Read more >
Won't let me login
Script error An error has occurred on this page. Line: 2 Char: 673309 Error: object doesn't support property or method 'isInteger' Code:...
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