This is a library to help with authenticating requests to and from PeekPro when writing apps.
config :peek_app_sdk,
peek_app_secret: "APP_SECRET",
peek_app_id: "APP_ID"
import PeekAppSDK.Plugs.PeekAuth
in routerplug :set_peek_install_id
can be used for routes that need to verify a peek request. This will set apeek_install_id
prop in theassigns
of theconn
live_session :some_live_view_session_scope, on_mount: {PeekAppSDK.Plugs.PeekAuth, :set_install_id_for_live_view}
will set thepeek_install_id
on the Socket for live view usage.