src/AspNetCore/Identity/Bearer/src/SignInManaging/BearerSignInManagerUtils.cs
/// <summary>
/// It tries to resolve refresh token id from claim <see cref="BearerSignInManagerDefaults.BearerSignInManagerRefreshTokenIdClaimType"/> 
/// and then look in the database. If a refresh token has been found, it will be returned.
/// </summary>
/// <exception cref="BearerSignInException" />
It tries to resolve refresh token id from claim
and then look in the database. If a refresh token has been found, it will be returned.
It tries to resolve refresh token id from claim and then look in the database . If a refresh token has been found it will be returned .
public static async Task<BearerTokenType> FindRefreshTokenAsync<BearerTokenType>(
            IBearerTokenStore<BearerTokenType> refreshTokenStore, 
            ClaimsPrincipal principal)
            where BearerTokenType : class, IBearerTokenEntity
        {
            principal = principal ?? throw new ArgumentNullException(nameof(principal));
            var refreshTokenId = FindRefreshTokenId(principal);
            var refreshTokenEntity = await refreshTokenStore.FindAsync(refreshTokenId);
            return refreshTokenEntity;
        }
public static async Task < BearerTokenType > FindRefreshTokenAsync < BearerTokenType > ( IBearerTokenStore < BearerTokenType > refreshTokenStore , ClaimsPrincipal principal ) where BearerTokenType : class , IBearerTokenEntity { principal = principal ?? throw new ArgumentNullException ( nameof ( principal ) ) ; var refreshTokenId = FindRefreshTokenId ( principal ) ; var refreshTokenEntity = await refreshTokenStore . FindAsync ( refreshTokenId ) ; return refreshTokenEntity ; }
It tries to resolve refresh token id from claim
and then look in the database.
It tries to resolve refresh token id from claim and then look in the database .
// Then we need the entity that belongs to refresh token id.
None
refreshTokenStore
IBearerTokenStore<BearerTokenType>
principal
ClaimsPrincipal