Skip to content

TryRecoverSessionAsync and GetNativeTokenBalance #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

andygruening
Copy link
Contributor

@andygruening andygruening commented Mar 4, 2025

Version Increment

Please ensure you have incremented the package version in the package.json as necessary.

  • I have incremented the package.json according to semantic versioning
  • No version increment is needed; the change does not impact SDK or Sample code/assets

Docs Checklist

Please ensure you have addressed documentation updates if needed as part of this PR:

  • I have created a separate PR on the sequence docs repository for documentation updates: Link to docs PR
  • No documentation update is needed for this change.

@andygruening andygruening requested review from a team as code owners March 4, 2025 11:09
Copy link

cloudflare-workers-and-pages bot commented Mar 4, 2025

Deploying sequence-unity with  Cloudflare Pages  Cloudflare Pages

Latest commit: dd56447
Status: ✅  Deploy successful!
Preview URL: https://57ee460c.sequence-unity.pages.dev
Branch Preview URL: https://recoversessionasync.sequence-unity.pages.dev

View logs

@@ -20,41 +21,19 @@ public class BoilerplateController : MonoBehaviour
[Header("Components")]
[SerializeField] private GameObject _featureSelection;

private IWallet _wallet;
private SequenceWallet _wallet;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

if (wallet != null)
return;

Debug.LogError("Failed to recover session. Please login.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code will log an error if secure storage (and session recovery) is disabled - that's a bit confusing in my opinion. Maybe you could pass an onFailure action (or similar) to the task that will log the error instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants