Swiftpack.co - supabase-community/gotrue-swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by supabase-community.
supabase-community/gotrue-swift 1.3.0
A Swift client library for GoTrue.
⭐️ 33
🕓 21 weeks ago
iOS macOS watchOS tvOS macCatalyst
.package(url: "https://github.com/supabase-community/gotrue-swift.git", from: "1.3.0")

gotrue-swift

[!WARNING]
This repository is deprecated and it was moved to the monorepo. Repository will remain live to support old versions of the library, but any new updates MUST be done on the monorepo.

Swift client for the GoTrue API.

Using

The usage should be the same as gotrue-js except:

Oauth2:

  • signIn with OAuth2 provider only return provider url. Users have to launch that url to continue the auth flow.
  • After receiving callback uri from OAuth2 provider, use session(from url: URL) to parse session data.

Running Examples

For running the examples project you'll have to provide your own Supabase project.

$ cp Examples/Shared/Sources/_Secrets.swift Examples/Shared/Sources/Secrets.swift
$ Examples/Shared/Sources/Secrets.swift # Or use you favorite editor

Replace {PROJECT_ID} and {ANON_KEY} with real values for your project on the Supabase portal.

Check Examples for example usages.

Contributing

  • Fork the repo on GitHub
  • Clone the project to your own machine
  • Commit changes to your own branch
  • Push your work back up to your fork
  • Submit a Pull request so that we can review your changes and merge

License

This repo is licensed under MIT.

Credits

GitHub

link
Stars: 33
Last commit: 15 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

1.3.0
21 weeks ago

What's Changed

Full Changelog: https://github.com/supabase-community/gotrue-swift/compare/1.2.1...1.3.0

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics