• A utility function to be used on the server before rendering a page, to get a user's current authentication state

    Parameters

    • ctx: GetServerSidePropsContext

      Context

    Returns Promise<StartingPageRenderAuthenticationOptions>

    Details of the current user's authentication, ready to initialise state management on the frontend