UserAPIKey

public struct UserAPIKey : Decodable

A struct representing a user API key as returned by the Stitch server.

  • Initializes the API key from its properties.

    Declaration

    Swift

    public init(id: ObjectId,
                key: String?,
                name: String,
                disabled: Bool)
  • id

    The ID of the key.

    Declaration

    Swift

    public let id: ObjectId
  • key

    The actual key. Will only be included in the response when an API key is first created.

    Declaration

    Swift

    public let key: String?
  • The name of the key.

    Declaration

    Swift

    public let name: String
  • Whether or not the key is disabled.

    Declaration

    Swift

    public let disabled: Bool