You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
StitchAuth and StitchUser have a property called "isLoggedIn" that do the same thing, we have an app that should start as an anonymous user, I think that a property is needed to verify if the user authenticating is an anonymous user.
Here is a possible solution to verify that an anonymous user is authenticated.
export function isAnonUser() {
// Check if there is currently a anonymous user
return (
StitchAppClient.auth.isLoggedIn &&
StitchAppClient.auth.user?.loggedInProviderType === 'anon-user'
);
}
The text was updated successfully, but these errors were encountered:
Hi Andres – Thanks for the suggestion, is there a reason that checking the loggedInProviderType doesn't work for your application or are you suggesting this as a potential extension for our SDK?
On way we keep track of how much users would like features like this is by posting/voting on our feedback forum .
StitchAuth and StitchUser have a property called "isLoggedIn" that do the same thing, we have an app that should start as an anonymous user, I think that a property is needed to verify if the user authenticating is an anonymous user.
Here is a possible solution to verify that an anonymous user is authenticated.
The text was updated successfully, but these errors were encountered: