Skip to main content

useFlowMeta()

You're reading Identity & Access Management 7.1.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

useFlowMeta() returns the flow metadata context of the WSO2 Identity Server Nuxt SDK (@asgardeo/nuxt).

Overview​

The SDK's embedded flow components read this context. <AsgardeoRoot> mounts it with flow metadata fetching turned off, so meta is always null and the methods don't fetch anything. The module auto-imports useFlowMeta() for compatibility with @asgardeo/vue.

note

Call useFlowMeta() only in components that render inside <AsgardeoRoot>. Otherwise, it throws an error. To change the UI language, use useAsgardeoI18n().setLanguage().

API​

PropertyTypeDescription
metaReadonly<Ref<FlowMetadataResponse | null>>The flow metadata. Always null in the Nuxt SDK.
isLoadingReadonly<Ref<boolean>>Whether flow metadata is loading.
errorReadonly<Ref<Error | null>>The error from loading flow metadata, if any.
fetchFlowMeta()() => Promise<void>Doesn't fetch in the Nuxt SDK.
switchLanguage(language)(language: string) => Promise<void>Doesn't do anything in the Nuxt SDK.

Was this page helpful?