urbit/pub/bit/fab/hymn.hook
C. Guy Yarvin a0a2cdf64f Revert "Cleanup commit #1; revert this when ready to merge."
This reverts commit c12823babc63665e30fe4e3935ccda80601d6cf8.
2016-01-25 16:49:09 -08:00

37 lines
704 B
Plaintext

::
::::
::
/? 314
/= gas /$ fuel
::
:::: ~sivtyv-barnel
::
!:
^- manx
=+ authcode=(fall (~(get by qix.gas) %'code') '')
;html
;head
;title: Coinbase Auth
;script@"/~/at/home/lib/urb.js";
==
;body
;*
?~ authcode
:_ ~
;div: Something went wrong. Please try to auth again.
;=
;script: authcode = {(pojo %s authcode)}
;script:'''
if (authcode)
urb.send({
appl: "bit",
data: authcode,
mark: "oauth2-code"
}, function(){
})
'''
;div: 'Success. Your auth-token has been sent to your app. You can close this now.'
==
==
==