How do I fix it if the 'getCurrentUser()' method in the User Management SDK returns null?
If the client portal wasn’t authenticated before triggering the Basic I/O or Advanced I/O function that contains the getCurrentUser() method, then the function will run using the admin authentication. This will cause the method to return a null response.
Therefore, you should ensure that you have authenticated the client portal before executing the getCurrentUser() method.
Updated
Yes
No
Send your feedback to us
Skip
Submit
Ask AI about this answer