Tango.Live.OAuthHook (tango v0.1.2)

Copy Markdown View Source

Provides the JavaScript hook name for the Tango OAuth popup flow.

Host apps should import the JS hook from deps/tango/assets/tango_oauth_hook.js and register it with the LiveSocket under the name returned by hook_name/0.

Example (app.js)

import TangoOAuth from "../../deps/tango/assets/tango_oauth_hook.js"

let Hooks = { TangoOAuth }
let liveSocket = new LiveSocket("/live", Socket, { hooks: Hooks })

Summary

Functions

Returns the hook module name to register with LiveSocket.

Functions

hook_name()

Returns the hook module name to register with LiveSocket.