Skip to content
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

feat: universal login #18

Merged
merged 5 commits into from
Nov 5, 2024
Merged

Conversation

iuricmp
Copy link
Collaborator

@iuricmp iuricmp commented Oct 30, 2024

This PR covers the following use cases:

  1. Sign in on closed Gnokey
  • close Gnokey
  • open dSocial and press sign in button
  • the Gnokey app must wake up and allow the sign in
  1. Allowing transactions on closed Gnokey
  • close Gnokey
  • post a message on dSocial
  • the Gnokey must wake up, allow the sign in, AND sign the transaction
  • dSocial should post the message

related to gnoverse/dsocial#136

Signed-off-by: Iuri Pereira [email protected]

if (path) {
route.replace(path as string);
if (action) {
route.replace(action);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This changes path to action. To test, in this PR branch I added console.log("action " + action); . It prints "action expo-development-client". This matches the error "Page could not be found land.gno.gnokey:///expo-development-client". Interestingly, in the main branch, path is undefined.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No idea where it comes from. So I added a case to it.

Copy link
Collaborator

@jefft0 jefft0 left a comment

Choose a reason for hiding this comment

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

Tested on Android and iOS simulators.

@iuricmp iuricmp merged commit c1356e7 into gnolang:main Nov 5, 2024
@iuricmp iuricmp deleted the feat/login-from-anyware branch November 5, 2024 12:54
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