Made component compatible with new changes to the Authentication component, in particular shouldPersist to say that authentication should not persist if the authentication was via the API.