Skip to content

zunda-pixel/firebase-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 = Auth(
  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 = RemoteConfig(
  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 = Storage(
  httpClient: .urlSession(.shared)
)

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

print(item)