© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
5 replies
hutonahill

How does signInManager return tokens?

I am modifying the standard login endpoint provided by
MapIdentityApi<IdentityUser>()
MapIdentityApi<IdentityUser>()
. at the bottem of the login endpoint:
// The signInManager already produced the needed response in the form of a cookie or bearer token.
// The signInManager already produced the needed response in the form of a cookie or bearer token.


i assume this means that somehow signinManager returns its tokens to the users. I need the login endpoint to return some other data depending on the roles the user has. I've implemented this logic, but i cant figure out how to return the sign tokens as well as my data. it also looks like that even when my users don't have this role the method is not returning tokens, its just returning an empty success.

How does signInManager return tokens to the user and how can i get it to return that data to my method so i can control how its returned to the user?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ ASP.NET SignInManager PasswordSignInAsync Error
C#CC# / help
3y ago
how to use SignInManager.SignInAsync in blazor web app?
C#CC# / help
3y ago
HttpClient does not return anything
C#CC# / help
3y ago
❔ Customizing assigned roles on sign in using SignInManager
C#CC# / help
4y ago