logto-io / js

🤓 Logto JS SDKs.
https://docs.logto.io/quick-starts/
MIT License
61 stars 40 forks source link

fix(next): change handleSignIn param number to 2 #721

Closed wangsijie closed 4 months ago

wangsijie commented 4 months ago

Summary

Make 2 function signatures for handleSignIn:

export function handleSignIn(config: LogtoNextConfig, searchParams: URLSearchParams): Promise<void>;
export function handleSignIn(config: LogtoNextConfig, url: URL): Promise<void>;

Testing

Local tested and existing tests should pass.

Checklist