import auth0 from '../../../src/utility/auth0' ; export default auth0 . handleAuth ( { logout : async ( req , res ) => { const { returnTo } = req . query ; return auth0 . handleLogout ( req , res , { returnTo : Array . isArray ( returnTo ) ? returnTo [ 0 ] : returnTo , } ) ; } , profile : async ( req , res ) => { return auth0 . handleProfile ( req , res , { refetch : 'refetch' in req . query } ) ; } , } ) ;