Major Changes
-
#122
7562ccaThanks @jamalavedra! - Update@openfort/openfort-jsto 2.0.0 and remove unimplemented auth types.The core SDK split
AuthResponseinto{ token, user, session }and madeUser
the standalone profile type. The auth flow types and the internal
refreshUserStatesignature now useUser, which is what they already returned
at runtime.SDKOverridesis still exported from this package, but is now derived from
OpenfortSDKConfiguration['overrides']because openfort-js 2.0.0 declares the
type without exporting it.Breaking: the following types have been removed. They described hook shapes
that no hook implemented — the real hooks return{ signInEmail, signUpEmail, ... }and{ initOAuth, linkOauth, ... }— andUseLoginWithOAuth.login
declared a return type that openfort-js 2.0.0 made incorrect. Use the return
types ofuseEmailAuth,useWalletAuthanduseOAuthdirectly, and
OpenfortHookOptionsfor callback options.-
EmailLoginHookOptions,EmailLoginHookResult -
SiweLoginHookOptions,SiweLoginHookResult -
UseLoginWithOAuth,LoginWithOAuthInput,LinkWithOAuthInput -
AuthSuccessCallback,ErrorCallback -
GenerateSiweMessage,GenerateSiweMessageResponseBreaking:
useEmailAuthno longer returnslinkEmail, andLinkEmailOptions
is removed. It was a no-op that silently did nothing while the documentation
advertised it, and openfort-js 2.0.0 has noauth.linkEmailPasswordto
implement it against. For linking to an existing account, uselinkOauthfrom
useOAuthorlinkSiwefromuseWalletAuth.
-