wildebeest/backend/src/types/context.ts

22 wiersze
496 B
TypeScript

import type { MastodonAccount } from 'wildebeest/backend/src/types/account'
import type { Person } from 'wildebeest/backend/src/activitypub/actors'
export type Identity = {
email: string
}
export type ContextData = {
// ActivityPub Person object of the logged in user
connectedActor: Person
// Configure for Cloudflare Access
accessDomain: string
accessAud: string
// Object returned by Cloudflare Access' provider
identity: Identity
// Client or app identifier
clientId: string
}