Skip to content

Commit c228065

Browse files
committed
Add instructions for running example project
1 parent 9626a58 commit c228065

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,4 @@ iOSInjectionProject/
134134

135135
# Custom
136136
.deriveddata
137+
Secrets.swift

Examples/Shared/Sources/Secrets.swift

-12
This file was deleted.
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import Foundation
2+
3+
let SUPABASE_URL = URL(string: "https://{PROJECT_ID}.supabase.co/auth/v1")!
4+
let SUPABASE_API_KEY = "{ANON_KEY}"

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ Oauth2:
1111
- `signIn` with OAuth2 provider only return provider url. Users have to launch that url to continue the auth flow.
1212
- After receiving callback uri from OAuth2 provider, use `session(from url: URL)` to parse session data.
1313

14+
## Running Examples
15+
16+
For running the examples project you'll have to provide your own Supabase project.
17+
18+
```sh
19+
$ cp Examples/Shared/Sources/_Secrets.swift Examples/Shared/Sources/Secrets.swift
20+
$ Examples/Shared/Sources/Secrets.swift # Or use you favorite editor
21+
```
22+
23+
Replace `{PROJECT_ID}` and `{ANON_KEY}` with real values for your project on the Supabase portal.
24+
1425
Check [Examples](/Examples) for example usages.
1526

1627
## Contributing
@@ -25,7 +36,6 @@ Check [Examples](/Examples) for example usages.
2536

2637
This repo is licensed under MIT.
2738

28-
2939
## Credits
3040

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

0 commit comments

Comments
 (0)