@page "/callback" @using NemAnBlazor.Services.Interfaces @inject NavigationManager NavigationMgr @inject IAuthClientService AuthService Callback page

Current count: @currentCount

@code { private int currentCount = 0; private void IncrementCount() { currentCount++; } protected override async Task OnInitializedAsync() { string url = NavigationMgr.Uri; //code is the only parameter in the url string code = url.Split("=")[1]; string redirectURI = "https://localhost:44342/"; //ovo promeni da se storuje negde na neko univerzalno mesto var response = await AuthService.GetAccessToken(new GrpcShared.DTO.Auth.TokenRequest { code = code, redirect_uri = redirectURI}); //store access token in local storage } }