File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 5151 Wallet
5252 </ button >
5353 < footer >
54- Address: < span id ="address "> N/A</ span >
54+ < p > Address: < span id ="address "> N/A</ span > </ p >
55+ < p > OAuth Code: < span id ="oauth_code "> N/A</ span > </ p >
5556 </ footer >
5657 </ article >
5758 < article >
Original file line number Diff line number Diff line change @@ -491,12 +491,17 @@ async function walletInitialized() {
491491
492492 const deployContract = getElement ( 'deploy_contract' )
493493
494- function authed ( address ) {
494+ async function authed ( address ) {
495495 if ( ! address || address === '' ) {
496496 return unAuthed ( )
497497 }
498+ const oauthCode = await provider . request ( {
499+ method : 'anyweb_oauth' ,
500+ } )
498501 getElement ( 'address' ) . innerHTML = address
502+ getElement ( 'oauth_code' ) . innerHTML = oauthCode
499503 console . log ( 'authed address: ' , address )
504+ console . log ( 'OAuth Code: ' , oauthCode )
500505 sendNativeTokenButton . disabled = false
501506 approveButton . disabled = false
502507 transferFromButton . disabled = false
You can’t perform that action at this time.
0 commit comments