Added function documentation for auth link and button.
auth link generation now accommodates optional state param