@@ -116,44 +116,45 @@ When using Vercel with Fluid Compute turned off, you should set `MAX_DURATION=30
116
116
- ` GOOGLE_CLIENT_ID ` -- Google OAuth client ID. More info [ here] ( https://next-auth.js.org/providers/google )
117
117
- ` GOOGLE_CLIENT_SECRET ` -- Google OAuth client secret. More info [ here] ( https://next-auth.js.org/providers/google )
118
118
119
- 1 . Go to [ Google Cloud] ( https://console.cloud.google.com/ ) . Create a new project if necessary.
120
- 2 . Create [ new credentials] ( https://console.cloud.google.com/apis/credentials ) :
121
- 1 . If the banner shows up, configure ** consent screen** (if not, you can do this later)
122
- 1 . Click the banner, then Click ` Get Started ` .
123
- 2 . Choose a name for your app, and enter your email.
124
- 3 . In Audience, choose ` External `
125
- 4 . Enter your contact information
126
- 5 . Agree to the User Data policy and then click ` Create ` .
127
- 6 . Return to APIs and Services using the left sidebar.
128
- 2 . Create new [ credentials] ( https://console.cloud.google.com/apis/credentials ) :
129
- 1 . Click the ` +Create Credentials ` button. Choose OAuth Client ID.
130
- 2 . In ` Application Type ` , Choose ` Web application `
131
- 3 . Choose a name for your web client
132
- 4 . In Authorized JavaScript origins, add a URI and enter ` http://localhost:3000 `
133
- 5 . In ` Authorized redirect URIs ` enter ` http://localhost:3000/api/auth/callback/google `
134
- 6 . Click ` Create ` .
135
- 7 . A popup will show up with the new credentials, including the Client ID and secret.
136
- 3 . Update .env file:
137
- 1 . Copy the Client ID to ` GOOGLE_CLIENT_ID `
138
- 2 . Copy the Client secret to ` GOOGLE_CLIENT_SECRET `
139
- 4 . Update [ scopes] ( https://console.cloud.google.com/auth/scopes )
140
- 1 . Go to ` Data Access ` in the left sidebar (or click link above)
141
- 2 . Click ` Add or remove scopes `
142
- 3 . Copy paste the below into the ` Manually add scopes ` box:
143
-
144
- ``` plaintext
145
- https://www.googleapis.com/auth/userinfo.profile
146
- https://www.googleapis.com/auth/userinfo.email
147
- https://www.googleapis.com/auth/gmail.modify
148
- https://www.googleapis.com/auth/gmail.settings.basic
149
- https://www.googleapis.com/auth/contacts
150
- ```
151
- 4. Click `Update`
152
- 5. Click `Save` in the Data Access page.
153
- 5. Add yourself as a test user
154
- 1. Go to [Audience](https://console.cloud.google.com/auth/audience)
155
- 2. In the `Test users` section, click `+Add users`
156
- 3. Enter your email and press `Save`
119
+ Go to [ Google Cloud] ( https://console.cloud.google.com/ ) . Create a new project if necessary.
120
+
121
+ Create [ new credentials] ( https://console.cloud.google.com/apis/credentials ) :
122
+ 1 . If the banner shows up, configure ** consent screen** (if not, you can do this later)
123
+ 1 . Click the banner, then Click ` Get Started ` .
124
+ 2 . Choose a name for your app, and enter your email.
125
+ 3 . In Audience, choose ` External `
126
+ 4 . Enter your contact information
127
+ 5 . Agree to the User Data policy and then click ` Create ` .
128
+ 6 . Return to APIs and Services using the left sidebar.
129
+ 2 . Create new [ credentials] ( https://console.cloud.google.com/apis/credentials ) :
130
+ 1 . Click the ` +Create Credentials ` button. Choose OAuth Client ID.
131
+ 2 . In ` Application Type ` , Choose ` Web application `
132
+ 3 . Choose a name for your web client
133
+ 4 . In Authorized JavaScript origins, add a URI and enter ` http://localhost:3000 `
134
+ 5 . In ` Authorized redirect URIs ` enter ` http://localhost:3000/api/auth/callback/google `
135
+ 6 . Click ` Create ` .
136
+ 7 . A popup will show up with the new credentials, including the Client ID and secret.
137
+ 3 . Update .env file:
138
+ 1 . Copy the Client ID to ` GOOGLE_CLIENT_ID `
139
+ 2 . Copy the Client secret to ` GOOGLE_CLIENT_SECRET `
140
+ 4 . Update [ scopes] ( https://console.cloud.google.com/auth/scopes )
141
+ 1 . Go to ` Data Access ` in the left sidebar (or click link above)
142
+ 2 . Click ` Add or remove scopes `
143
+ 3 . Copy paste the below into the ` Manually add scopes ` box:
144
+
145
+ ``` plaintext
146
+ https://www.googleapis.com/auth/userinfo.profile
147
+ https://www.googleapis.com/auth/userinfo.email
148
+ https://www.googleapis.com/auth/gmail.modify
149
+ https://www.googleapis.com/auth/gmail.settings.basic
150
+ https://www.googleapis.com/auth/contacts
151
+ ```
152
+ 4. Click `Update`
153
+ 5. Click `Save` in the Data Access page.
154
+ 5. Add yourself as a test user
155
+ 1. Go to [Audience](https://console.cloud.google.com/auth/audience)
156
+ 2. In the `Test users` section, click `+Add users`
157
+ 3. Enter your email and press `Save`
157
158
158
159
### Updating .env file with LLM parameters
159
160
0 commit comments