File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -307,8 +307,7 @@ function oAuthPluginServer(
307307 } )
308308
309309 // Redirect to the defined path or default to the admin dashboard
310- const userRedirectionPath = options . userRedirectionPath || '/admin'
311- res . redirect ( userRedirectionPath )
310+ res . redirect ( options . successRedirect || '/admin' )
312311 } ,
313312 } ,
314313 ] ) ,
Original file line number Diff line number Diff line change @@ -50,14 +50,16 @@ export interface oAuthPluginOptions extends StrategyOptions {
5050 Button ?: ComponentType < any >
5151 }
5252 userCollection ?: {
53- /** Defaults to "users" */
53+ /** @default "users" */
5454 slug ?: string
5555 }
5656 /** If the collection does not have a field with name "sub", it will be created */
5757 subField ?: {
58- /** Defaults to "sub" */
58+ /** @default "sub" */
5959 name ?: string
6060 }
61- /** Which path to redirect the authenticated user to, redirects to /admin by default */
62- userRedirectionPath ?: string
61+ /** Path or URL to redirect the authenticated user to
62+ * @default /admin
63+ */
64+ successRedirect ?: string
6365}
You can’t perform that action at this time.
0 commit comments