export const getAuthenticatedUser = async (args)=>{
    return args.payload.authStrategies.reduce(async (accumulatorPromise, strategy)=>{
        const authUser = await accumulatorPromise;
        if (!authUser) {
            return strategy.authenticate(args);
        }
        return authUser;
    }, Promise.resolve(null));
};

//# sourceMappingURL=getAuthenticatedUser.js.map