Skip to content

DoCurious API Reference / store / selectIsMinor

Function: selectIsMinor()

selectIsMinor(state): boolean

Defined in: store/useAuthStore.ts:461

Check if the current user is a minor (under 18) based on date of birth.

Parameters

state

AuthStore

Auth store state

Returns

boolean

true if the user is under 18

DoCurious Platform Documentation