Enhanced token creation and token based authentication.