async def add_claims(self, payload, user, *args, **kwargs):
delta = timedelta(seconds=self.config.expiration_delta())<EOL>exp = datetime.utcnow() + delta<EOL>additional = {"<STR_LIT>": exp}<EOL>for option in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>setting = "<STR_LIT>".format(option.lower())<EOL>if setting in self.config:  <EOL><INDENT>attr = self.config.get(setting)<EOL>if attr:<EOL><INDENT>self.claims.append(option)<EOL>method_name = "<STR_LIT>".format(option)<EOL>method = getattr(utils, method_name)<EOL>additional.update({option: method(attr, self.config)})<EOL><DEDENT><DEDENT><DEDENT>payload.update(additional)<EOL>if self._custom_claims:<EOL><INDENT>custom_claims = {}<EOL>for claim in self._custom_claims:<EOL><INDENT>custom_claims[claim.get_key()] = await utils.call(<EOL>claim.setup, payload, user<EOL>)<EOL><DEDENT>payload.update(custom_claims)<EOL><DEDENT>return payload<EOL>
Injects standard claims into the payload for: exp, iss, iat, nbf, aud.
And, custom claims, if they exist