working on various components of the documentation
This commit is contained in:
2
docs/blazor/admin.md
Normal file
2
docs/blazor/admin.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# HopFrame Admin Pages
|
||||
|
||||
20
docs/blazor/auth.md
Normal file
20
docs/blazor/auth.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Auth Service
|
||||
The `IAuthService` provides some useful methods to handle user authentication (login/register).
|
||||
|
||||
## Usage
|
||||
Simply define the `IAuthService` as a dependency
|
||||
|
||||
```csharp
|
||||
public interface IAuthService {
|
||||
Task Register(UserRegister register);
|
||||
Task<bool> Login(UserLogin login);
|
||||
Task Logout();
|
||||
|
||||
Task<Token> RefreshLogin();
|
||||
Task<bool> IsLoggedIn();
|
||||
}
|
||||
```
|
||||
## Automatically refresh user sessions
|
||||
1. Make sure you have implementented the `AuthMiddleware` how it's described in step 5 of the [installation](./installation.md).
|
||||
|
||||
2. After that, the access token of the user gets automatically refreshed as long as the refresh token is valid.
|
||||
@@ -1,5 +1,5 @@
|
||||
## How to use the Blazor API
|
||||
This Installation adds all HopFrame [pages](./pages.md) and [services](./services.md) to the application.
|
||||
This Installation adds all HopFrame [pages](./pages.md) and [repositories](../repositories.md) to the application.
|
||||
|
||||
1. Add the HopFrame.Web library to your project
|
||||
|
||||
|
||||
0
docs/blazor/pages.md
Normal file
0
docs/blazor/pages.md
Normal file
Reference in New Issue
Block a user