napkin-0.5.14
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageGHC2021

Napkin.Auth.Web.AuthApiServer

Description

 
Synopsis

Documentation

appWrapper #

Arguments

:: OAuth2Env

oAuth2 environment

-> (OAuth2Env -> Text)

URL to open the browser to

-> IO OAuth2Code 

wwwApp #

Arguments

:: OAuth2Env

oAuth2 environment

-> IO () 

oAuth2 http server The webserver is used to automate google oAuth2 code X token transaction

indexH :: ActionM () #

used to check if the server is up

indexHtml :: Text #

Forwards user to napkin docs upon successful oAuth2 code acquisition