recognizegroup / capacitor-plugin-msauth

Capacitor-wrapper for MSAL libraries. Works on iOS, Android and web.
Other
17 stars 17 forks source link

Cannot read properties of undefined (reading 'login') #23

Open mustafaAly opened 12 months ago

mustafaAly commented 12 months ago

I try to use MsAuthPlugin.login from const { MsAuthPlugin } = Plugins; it gives me Cannot read properties of undefined (reading 'login')

any Help !

bartwesselink commented 12 months ago

Hi @mustafaAly! Thank you so much for using the plugin. Have you followed the steps described in the Installation? https://github.com/recognizegroup/capacitor-plugin-msauth#installation

mustafaAly commented 12 months ago

Hi @bartwesselink nice to meet you, yes I Followed the steps described I'm using Capacitor V2 "2.4.6" is it a supported version or not, also should I inject or update the app module to work with "MsAuthPlugin " or inject it on a component like this const { MsAuthPlugin } = Plugins;

thank you for your efforts

bartwesselink commented 12 months ago

@mustafaAly could you try using the 2.x version of this plugin? Newer versions require Capacitor 3.0

mustafaAly commented 12 months ago

@bartwesselink I already tried this, i try to use version 1 and version 2 also 0.0.X

bartwesselink commented 12 months ago

@mustafaAly would you be able to provide a repository with a minimal demonstration of your issue, so we can see what is going on?