Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/supabase-community/gotrue-swift
A Swift client library for GoTrue.
https://github.com/supabase-community/gotrue-swift
gotrue supabase supabase-auth swift
Last synced: 18 days ago
JSON representation
A Swift client library for GoTrue.
- Host: GitHub
- URL: https://github.com/supabase-community/gotrue-swift
- Owner: supabase-community
- License: mit
- Created: 2021-05-22T13:16:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-20T17:53:33.000Z (12 months ago)
- Last Synced: 2024-10-26T11:22:26.529Z (18 days ago)
- Topics: gotrue, supabase, supabase-auth, swift
- Language: Swift
- Homepage:
- Size: 175 KB
- Stars: 36
- Watchers: 6
- Forks: 31
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `gotrue-swift`
> [!WARNING]
> This repository is deprecated and it was moved to the [monorepo](https://github.com/supabase-community/supabase-swift).
> 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](https://github.com/supabase/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.
```sh
$ 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](/Examples) for example usages.
## Contributing
- Fork the repo on [GitHub](https://github.com/supabase-community/gotrue-swift)
- 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
- https://github.com/supabase/gotrue-js - ported from supabase/gotrue-js fork
- https://github.com/netlify/gotrue-js - original library