Skip to content

Documentation / @frak-labs/react-sdk / useOpenSso

Function: useOpenSso()

useOpenSso(args?): UseMutationResult<OpenSsoReturnType, FrakRpcError<undefined>, OpenSsoParamsType, unknown>

Defined in: react/src/hook/useOpenSso.ts:38

Hook that return a mutation helping to open the SSO page

It's a `tanstack` wrapper around the `openSso()` action

Parameters

args?

Optional config object with mutations for customizing the underlying `useMutation()`

mutations?

MutationOptions

Optional mutation options, see `useMutation()` for more infos

Returns

UseMutationResult<OpenSsoReturnType, FrakRpcError<undefined>, OpenSsoParamsType, unknown>

The mutation hook wrapping the openSso() action The mutate and mutateAsync argument is of type `OpenSsoParamsType` The mutation doesn't output any value

See