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
Private org memberships can only be determined by making an authenticated API request.
63
+
Create a token with `read:org` permission at <https://github.com/settings/tokens>.
60
64
61
-
We could request `read:org` scope during the OAuth flow and then use each user's access token to determine org membership, but using this method means the user additionally needs to request org access during or after the login flow and requires an org admin to confirm. This makes this approach inconvenient for both the users and the admin.
65
+
The reason you need a token is that private org memberships can only be
66
+
determined by making an authenticated API request.
62
67
63
-
Therefore we're using a separate org admin token to verify membership during login (org admins can see all users).
68
+
We could request `read:org` scope during the OAuth flow and then use each user's
69
+
access token to determine org membership, but using this method means the user
70
+
additionally needs to request org access during or after the login flow and
71
+
requires an org admin to confirm. This makes this approach inconvenient for both
72
+
the users and the admin.
73
+
74
+
Therefore we're using a separate org admin token to verify membership during
75
+
login (org admins can see all users).
64
76
65
77
### Step 3 — Create a `vercel.json`
66
78
@@ -78,13 +90,21 @@ Therefore we're using a separate org admin token to verify membership during log
78
90
79
91
This routes all traffic through the lambda endpoint.
80
92
81
-
Adapt `includeFiles` to your public output folder. Including these files is required because the static website needs to be deployed as part of the lambda function, not the default build. See also the [function docs](https://vercel.com/docs/projects/project-configuration#functions) and [size limit docs](https://vercel.com/docs/functions/serverless-functions/runtimes#size-limits).
93
+
Adapt `includeFiles` to your public output folder. Including these files is
94
+
required because the static website needs to be deployed as part of the lambda
95
+
function, not the default build. See also these docs:
If you have an existing `build` script, rename it to `vercel-build` to build your website as part of the lambda build instead of the normal build.
102
+
If you have an existing `build` script, rename it to `vercel-build` to build
103
+
your website as part of the lambda build instead of the normal build.
86
104
87
-
Make sure to not keep the `build` script as it would result in duplicate work or may break deployment entirely. For more information see [custom-build-step-for-node-js](https://vercel.com/docs/functions/serverless-functions/runtimes/node-js#custom-build-step-for-node.js).
105
+
Make sure to not keep the `build` script as it would result in duplicate work or
106
+
may break deployment entirely. For more information see
0 commit comments