Skip to main content

Module integrations

Module integrations 

Source

Structs§

Account
Accounts
Every platform people link, in the order Fauna lists them, and the accounts this person linked.
Demographic
Discord
GitHub
GitHubRepository
A repository on GitHub that a linked account lets Fauna see.
Google
Microsoft
PlatformBrand
A platform people link, as Fauna shows it.
Slack
Twilio
WhatsApp

Enums§

LinkOutcome
How a link ended.
Platform
PlatformAccount
The Account subclass instances Account.fromJSON makes in the TypeScript SDK.

Functions§

finish_link
Finishes a link this person started, by its state, and returns how it ended, using the state up. With the claim its popup landed back with, the account it brought back is linked; without one, nothing it brought back is, and a link nothing ended is cancelled.
get_accounts
Every platform people link, with its name and logo, and the accounts this person linked.
link_platform
Links integration and answers how the link ended. open gets the page to open (the provider’s consent page, or Fauna’s own form) and returns the URL the browser landed back on, return_to (a page on a site Fauna trusts) with the link’s state and, when an account came back, a one time claim in its fragment, which links the account with these credentials (finish_link). Whatever lands without the claim links nothing, and a link nothing ended is cancelled.