servicestackservicestack-auth

servicestack userauthid is type of string but it actually is int


Is there any cases where IAuthSession.UserAuthId is something else than int or can I just safely assume it is always int?


Solution

  • The Type of UserAuthId is dependent on the Auth Repository used, e.g. if you're using an OrmLiteAuthRepository it will always be an int.