Skip to contents

Use a supplied login email and password to get the necessary authentication cookie to allow a user to get information about and update their team. The value of the resulting cookie is saved for the session to options("FANTASY_COOKIE")

Usage

authenticate(email, password)

Arguments

email

the email address of the FPL user

password

the password of the FPL user

Value

saves the users authentication token to options("FANTASY_COOKIE")