Skip to content

Commit

Permalink
Add instructions for running example project
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev committed Mar 22, 2023
1 parent 9626a58 commit c228065
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,4 @@ iOSInjectionProject/

# Custom
.deriveddata
Secrets.swift
12 changes: 0 additions & 12 deletions Examples/Shared/Sources/Secrets.swift

This file was deleted.

4 changes: 4 additions & 0 deletions Examples/Shared/Sources/_Secrets.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Foundation

let SUPABASE_URL = URL(string: "https://{PROJECT_ID}.supabase.co/auth/v1")!
let SUPABASE_API_KEY = "{ANON_KEY}"
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ 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
Expand All @@ -25,7 +36,6 @@ Check [Examples](/Examples) for example usages.

This repo is licensed under MIT.


## Credits

- https://github.com/supabase/gotrue-js - ported from supabase/gotrue-js fork
Expand Down

0 comments on commit c228065

Please sign in to comment.