Sign in results

Generated reference for ovok_sdk: sign in results.

  • Stable unknown
  • Release candidate since 0.1.0-rc.4
  • Development since 0.1.0-dev.23+d339d81

ClinicianInvite

final class ClinicianInvite implements RegisterResult

The project routed the email to a clinician invitation; no one is signed in.

Constructors

ClinicianInvite.new

ClinicianInvite()

The registration ended in a clinician invitation.

LoginResult

sealed class LoginResult

What ovok.auth.login and ovok.auth.verifyMfa return.

MfaChallenge

class MfaChallenge

Hand it back to verifyMfa: it carries the PKCE verifier the token exchange needs.

Constructors

MfaChallenge.new

MfaChallenge({
  required ProfileType profileType,
  required String loginId,
  required String codeVerifier,
})

A challenge from a login that needs a second factor.

ParameterTypeKindDefault
profileTypeProfileTyperequired named
loginIdStringrequired named
codeVerifierStringrequired named

Properties

MfaChallenge.profileType

final ProfileType profileType

The profile type the login started with.

MfaChallenge.loginId

final String loginId

The server's id for the pending login.

MfaChallenge.codeVerifier

final String codeVerifier

The PKCE verifier of the pending login.

MfaRequired

final class MfaRequired implements LoginResult

The login needs a second factor; pass challenge to ovok.auth.verifyMfa with the user's code.

Constructors

MfaRequired.new

MfaRequired(MfaChallenge challenge)

Wraps the pending challenge.

ParameterTypeKindDefault
challengeMfaChallengepositional

Properties

MfaRequired.challenge

final MfaChallenge challenge

The challenge to hand back to ovok.auth.verifyMfa.

ProfileType

enum ProfileType

The kind of profile an account signs in or registers as.

Values

ProfileType.patient

static const ProfileType patient

A FHIR Patient.

ProfileType.practitioner

static const ProfileType practitioner

A FHIR Practitioner.

ProfileType.relatedPerson

static const ProfileType relatedPerson

A FHIR RelatedPerson.

Constructors

ProfileType.new

ProfileType(String resourceType)
ParameterTypeKindDefault
resourceTypeStringpositional

Properties

ProfileType.resourceType

final String resourceType

The FHIR resource type the profile is stored as.

RegisterResult

sealed class RegisterResult

What ovok.auth.register returns.

SignedIn

final class SignedIn implements LoginResult, RegisterResult

The user is signed in with session.

Constructors

SignedIn.new

SignedIn(Session session)

Wraps the new session.

ParameterTypeKindDefault
sessionSessionpositional

Properties

SignedIn.session

final Session session

The session that was started and stored.

Last updated on

On this page