Table of Contents

Interface ITokenWindowInterop

Namespace
Arc4u.Blazor
Assembly
Arc4u.OAuth2.Blazor.dll

Defines a contract for interacting with an OAuth token window.

public interface ITokenWindowInterop

Methods

OpenWindowAsync(IJSRuntime, ILocalStorageService, string, string)

Opens a new window asynchronously with the specified URL and features, using the provided JS runtime and local storage service.

Task OpenWindowAsync(IJSRuntime jsRuntime, ILocalStorageService localStorage, string url, string feature = "toolbar=no,scrollbars=yes,resizable=yes,top=500,left=500,width=450,height=500")

Parameters

jsRuntime IJSRuntime

The JS runtime to use for opening the window.

localStorage ILocalStorageService

The local storage service to use for storing and retrieving tokens.

url string

The URL to open in the new window.

feature string

The features of the new window. Defaults to "toolbar=no,scrollbars=yes,resizable=yes,top=500,left=500,width=450,height=500".

Returns

Task

A task representing the asynchronous operation.