Interface ITokenWindowInterop
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
jsRuntimeIJSRuntimeThe JS runtime to use for opening the window.
localStorageILocalStorageServiceThe local storage service to use for storing and retrieving tokens.
urlstringThe URL to open in the new window.
featurestringThe 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.