OAuth.AspNet.AuthServer.AuthenticationTokenCreateContext.SetToken C# (CSharp) Method

SetToken() public method

public SetToken ( string tokenValue ) : void
tokenValue string
return void
        public void SetToken(string tokenValue)
        {
            if (tokenValue == null)
                throw new ArgumentNullException(nameof(tokenValue));

            Token = tokenValue;
        }

Usage Example

 private void CreateRefreshToken(AuthenticationTokenCreateContext context)
 {
     context.SetToken(context.SerializeTicket());
 }
All Usage Examples Of OAuth.AspNet.AuthServer.AuthenticationTokenCreateContext::SetToken