async def generate_access_token(self, user):
payload = await self._get_payload(user)<EOL>secret = self._get_secret(True)<EOL>algorithm = self._get_algorithm()<EOL>return jwt.encode(payload, secret, algorithm=algorithm).decode("<STR_LIT:utf-8>")<EOL>
Generate an access token for a given user.