Skip to content

Latest commit

 

History

History
76 lines (60 loc) · 1.64 KB

README.md

File metadata and controls

76 lines (60 loc) · 1.64 KB

firebase-swift

Firebase client for Swift.

  • Create Anonymous User
  • Create User
  • Delete Account
  • Link Email for Anonymous User
  • Refresh Token
  • Send Email Verification
  • Send Email to Reset Password
  • Send SignUp Link
  • Update Password
  • Update Profile
  • Verify Password
let client = AuthClient(
  apiKey: apiKey,
  httpClient: .urlSession(.shared)
)

let user = try await client.createUser(
  email: "[email protected]",
  password: "password"
)

print(user)
  • Fetch Remote Config
  • Realtime Remote Config
let client = RemoteConfigClient(
  apiKey: apiKey,
  projectId: projectId,
  projectName: projectName,
  appId: appId,
  appInstanceId: UUID().uuidString,
  httpClient: .urlSession(.shared)
)

let config = try await client.fetch()
print(config)
  • Get Item
  • Get Items
  • Upload Item
  • Delete Item
  • Update Item
let client = StorageClient(
  httpClient: .urlSession(.shared)
)

let item = try await client.upload(
  bucket: bucket,
  path: itemPath,
  data: data,
  contentType: contentType
)

print(item)