You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32Lines changed: 32 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ Learn more about Appwrite [here](https://appwrite.io/).
19
19
- Forgot password and reset password
20
20
- Beautiful and animated UI
21
21
- Built on File-based routing
22
+
- Supports Dark and Light mode
22
23
23
24
## Tech Stack
24
25
@@ -45,6 +46,35 @@ Once you have the project setup, let's setup Appwrite Project and configure the
45
46
46
47
5. To Setup OAuth providers, go to the `Auth => Settings ` tab in the Appwrite dashboard and add the providers you want to use. Refer to their individual docs on how to setup the OAuth providers.
47
48
49
+
#### Setup Cloud Function
50
+
51
+
This projects uses a cloud function that redirects back to your app when you click the password reset login you receive in your email. To setup the cloud function, I recommend using `Deploy from Git` option in `Functions` tab in the Appwrite dashboard.
52
+
53
+
To learn more about how to deploy a function from git, refer to the [Function docs](https://appwrite.io/docs/products/functions/deploy-from-git).
54
+
55
+
Else you can also use appwrite CLI to deploy the function.
56
+
57
+
Once you have setup the cloud function, add the following environment variable to the function.
58
+
59
+
```env
60
+
APP_SCHEME=your_app_scheme
61
+
```
62
+
63
+
For example,
64
+
65
+
```env
66
+
APP_SCHEME=rnauth
67
+
```
68
+
69
+
> [!IMPORTANT]
70
+
> For security reasons, it is recommended to add the app_scheme in the function environment variable.
71
+
> This scheme is needed to redirect back to the app. You can find the scheme in the `app.json` file.
72
+
> Without this it won't redirect back to your app
73
+
74
+
- Once that's done, go to the `Domains` tab and copy the url of the function.
75
+
- Then add a new Web app Platform in the Appwrite Project
76
+
- Give any name of your choice and paste the hostname of the function in the Hostname field.
77
+
48
78
That's it for the Appwrite setup. Now let's configure the app.
49
79
50
80
### App Configuration
@@ -64,6 +94,8 @@ That's it for the Appwrite setup. Now let's configure the app.
0 commit comments