Summary
Registration and authentication
- Namespace
- OpenTl
.ClientApi .Services .Interfaces
graph TD
Type["IAuthService"]
class Type type-node
Syntax
public interface IAuthService
Properties
| Name | Value | Summary |
|---|---|---|
| CurrentUserId | int? |
Returns the current user ID. Null - if the session is not authenticated
|
Methods
| Name | Value | Summary |
|---|---|---|
| LogoutAsync |
Task |
Logout the current user
|
| SendCodeAsync |
Task |
The first stage of authentication or registration. Request to send a verification code
|
| SignInAsync |
Task |
The second stage of authentication. Send the received authentication code
|
| SignUpAsync |
Task |
Register new user
|