File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/next-auth/src/react Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,11 @@ export async function getProviders() {
175
175
export async function signIn <
176
176
P extends RedirectableProviderType | undefined = undefined
177
177
> (
178
- provider ?: LiteralUnion < P extends RedirectableProviderType ? P | BuiltInProviderType : BuiltInProviderType > ,
178
+ provider ?: LiteralUnion <
179
+ P extends RedirectableProviderType
180
+ ? P | BuiltInProviderType
181
+ : BuiltInProviderType
182
+ > ,
179
183
options ?: SignInOptions ,
180
184
authorizationParams ?: SignInAuthorizationParams
181
185
) : Promise <
@@ -224,6 +228,7 @@ export async function signIn<
224
228
225
229
const data = await res . json ( )
226
230
231
+ // TODO: Do not redirect for Credentials and Email providers by default in next major
227
232
if ( redirect || ! isSupportingReturn ) {
228
233
const url = data . url ?? callbackUrl
229
234
window . location . href = url
You can’t perform that action at this time.
0 commit comments