FxaConfig

public struct FxaConfig : Equatable, Hashable
extension FxaConfig: Sendable
  • 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.

    Note: this lives here for historical reasons, but probably shouldn’t. Applications pass the token server URL they get from fxa-client to SyncManager. It would be simpler to cut out fxa-client out of the middle and have applications send the overridden URL directly to SyncManager.

    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.
         *
         * Note: this lives here for historical reasons, but probably shouldn't.  Applications pass
         * the token server URL they get from `fxa-client` to `SyncManager`.  It would be simpler to
         * cut out `fxa-client` out of the middle and have applications send the overridden URL
         * directly to `SyncManager`.
         */tokenServerUrlOverride: String? = nil)