Skip to content

Commit

Permalink
Add method to set token (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidorovkirill authored Mar 1, 2023
1 parent ad9906f commit 27f3913
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ public class MirageIdUserRequests : IMirageIdUserRequests
private string _clientSecret;
private string _userToken;

public void SetToken(string userToken)
{
_userToken = userToken;
}

public bool IsAuthorized()
{
return !string.IsNullOrEmpty(_userToken)
Expand Down
2 changes: 1 addition & 1 deletion Assets/AnkrSDK/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.ankr.ankrsdk",
"displayName": "AnkrSDK",
"author": { "name": "Ankr, Inc.", "url": "https://www.ankr.com/gaming/" },
"version": "0.5.2",
"version": "0.5.3",
"unity": "2019.1",
"description": "Provides an easy way to interact with Web3 and possibility to work with contracts deployed on the blockchain.",
"keywords": [ "Web3", "blockchain", "gaming", "AnkrSDK" ],
Expand Down

0 comments on commit 27f3913

Please sign in to comment.