TryGetRefreshTokenCookie
Reads the refresh-token cookie named by CookieNames.RefreshToken, returning null when the request carries none.
Use it where a signed-out caller is ordinary rather than exceptional. Where the cookie is required, GetRefreshTokenCookie fails immediately instead.
Usage
csharp
using Microsoft.AspNetCore.Http;
using AlmightyShogun.AspNet.Auth;
string? refreshToken = httpContext.Request.TryGetRefreshTokenCookie();Returns
The refresh-token cookie value, ornull when the cookie is not present.Type signature
csharp
public string? TryGetRefreshTokenCookie();