FxaConfig

public struct FxaConfig
extension FxaConfig: Equatable, Hashable
  • FxaServer to connect with

    Declaration

    Swift

    public var server: FxaServer
  • Registered OAuth client id of the application.

    Declaration

    Swift

    public var clientId: String
  • redirect_uri - the registered OAuth redirect URI of the application.

    Declaration

    Swift

    public var redirectUri: String
  • URL for the user’s Sync Tokenserver. This can be used to support users who self-host their sync data. If None then it will default to the Mozilla-hosted Sync server.

    Declaration

    Swift

    public var tokenServerUrlOverride: String?
  • Declaration

    Swift

    public init(
        /**
         * FxaServer to connect with
         */server: FxaServer, 
        /**
         * Registered OAuth client id of the application.
         */clientId: String, 
        /**
         * `redirect_uri` - the registered OAuth redirect URI of the application.
         */redirectUri: String, 
        /**
         * URL for the user's Sync Tokenserver. This can be used to support users who self-host their
         * sync data. If `None` then it will default to the Mozilla-hosted Sync server.
         */tokenServerUrlOverride: String? = nil)
  • Declaration

    Swift

    public static func == (lhs: FxaConfig, rhs: FxaConfig) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)