From ecf1f993d2218c9ae80cfba25013842ee501298c Mon Sep 17 00:00:00 2001 From: Dzianis Talkachou Date: Mon, 31 Jul 2023 00:07:16 +0300 Subject: [PATCH 1/2] Update add_custom_data_claims.rst --- docs/add_custom_data_claims.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/add_custom_data_claims.rst b/docs/add_custom_data_claims.rst index 0a673b3b..6f308f1a 100644 --- a/docs/add_custom_data_claims.rst +++ b/docs/add_custom_data_claims.rst @@ -29,7 +29,7 @@ going to the data supplied by the ``additional_claims`` argument. # claims to add to the JWT. @jwt.additional_claims_loader def add_claims_to_access_token(identity): - return = { + return { "aud": "some_audience", "foo": "bar", "upcase_name": identity.upper(), From facd5d69d9bad89494be309c025fb76509b21b06 Mon Sep 17 00:00:00 2001 From: Dzianis Talkachou Date: Mon, 31 Jul 2023 00:10:23 +0300 Subject: [PATCH 2/2] FIx indentation --- docs/add_custom_data_claims.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/add_custom_data_claims.rst b/docs/add_custom_data_claims.rst index 6f308f1a..51320a38 100644 --- a/docs/add_custom_data_claims.rst +++ b/docs/add_custom_data_claims.rst @@ -29,8 +29,8 @@ going to the data supplied by the ``additional_claims`` argument. # claims to add to the JWT. @jwt.additional_claims_loader def add_claims_to_access_token(identity): - return { - "aud": "some_audience", - "foo": "bar", - "upcase_name": identity.upper(), - } + return { + "aud": "some_audience", + "foo": "bar", + "upcase_name": identity.upper(), + }