Skip to content

⚡ MultiversX .NET NativeAuth Server SDK: Library for validating native login Token for server app

License

Notifications You must be signed in to change notification settings

RemarkableTools/Mx.NET.SDK.NativeAuthServer

Repository files navigation

Mx.NET.SDK.SmartSend

⚡ MultiversX .NET NativeAuth Server SDK: Library for validating native login Token for server app

How to install?

The content is delivered via nuget packages:

RemarkableTools.Mx.NativeAuthServer Package

Main Features

  • Validate login token on server side

Compatibility

*Note: The validation is a bit changed from the original MultiversX NativeAuthServer. In this SDK the ExtraInfo is mandatory and is containing the valid timestamp for the block

Quick start guide

Basic example

var nativeAuthServerConfig = new NativeAuthServerConfig();
nativeAuthServerConfig.AcceptedOrigins = new[] { "https://yourwebsite.com" }; // optional 
var nativeAuthServer = new NativeAuthServer(nativeAuthServerConfig);
try
{
    var nativeAuthToken = nativeAuthServer.Validate(accessToken);
    // token is valid
}
catch (Exception ex) // catching all exceptions
{
    // token is not valid
}

About

⚡ MultiversX .NET NativeAuth Server SDK: Library for validating native login Token for server app

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages