Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

LL-8181 Render FTX Login/KYC widgets inside WebView#1996

Draft
JunichiSugiura wants to merge 9 commits intodevelopfrom
LL-8181
Draft

LL-8181 Render FTX Login/KYC widgets inside WebView#1996
JunichiSugiura wants to merge 9 commits intodevelopfrom
LL-8181

Conversation

@JunichiSugiura
Copy link
Contributor

@JunichiSugiura JunichiSugiura commented Nov 19, 2021

Tasks

  • Receive authToken from login widget and store it on Live
  • Pass authToken to kyc widget on preload (store inside local storage within WebView)
  • Test with FTX widgets

Changelog

  • 2021-11-21 Revert saveToken -> setToken
  • 2021-11-22 Rename setToken -> saveToken
  • 2021-11-22 Introduce high level methods

Example

// High level methods

// To store authToken on Live side
window.ledger.setToken("<access-token>");

// To close widget at the end of the flow
window.ledger.closeWidget();


// Low level method (above methods internally utilises this method)

const message = JSON.stringify({
  type: "setToken",
  token: "<access-token>"
});

window.ledger.postMessage(message);

Low Level Message Type

type Message = { type: "saveToken", token: string } | { type: "closeWidget" };

Demo

Screen.Recording.2021-11-19.at.17.01.45.mov

Type

Feature

Context

LL-8181

Parts of the app affected / Test plan

TBA

@JunichiSugiura JunichiSugiura requested review from a team November 19, 2021 15:24
@JunichiSugiura JunichiSugiura marked this pull request as draft November 19, 2021 15:33
@JunichiSugiura JunichiSugiura changed the title LL-8181 Render FTX Login/kyc widgets inside WebView LL-8181 Render FTX Login/KYC widgets inside WebView Nov 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant