-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Stych isn't implemented yet.
The authenticateWithStytch function signature expects (accessToken: string, userId?: string, method?: string) but is being called with just (method). This will cause a type mismatch and runtime error.
TODO: Replace the following with actual logic to obtain the accessToken and userId
For example, you might prompt the user for their OTP and use Stytch's SDK to verify and get the accessToken
const accessToken = await getStytchAccessToken(method);
You need to implement getStytchAccessToken
If you have a userId, obtain it here. Otherwise, you can omit it.
const userId = ...;
const result = await authenticateWithStytch(accessToken, undefined, method);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels