14 lines
361 B
Plaintext
14 lines
361 B
Plaintext
@page "/CreateServer"
|
|
@using Microsoft.AspNetCore.Http
|
|
@using Microsoft.AspNetCore.Authentication
|
|
@inject IHttpContextAccessor _httpContextAccessor
|
|
@attribute [Authorize]
|
|
|
|
@code {
|
|
protected async override Task OnInitializedAsync()
|
|
{
|
|
string token = await _httpContextAccessor.HttpContext.GetTokenAsync("access_token");
|
|
var t = 2;
|
|
}
|
|
|
|
} |