From 800a127df054d13414614cc82d44e36998a9ec1e Mon Sep 17 00:00:00 2001 From: Krasimira Yordanova Date: Tue, 19 Aug 2025 16:29:40 +0300 Subject: [PATCH] start-end comments on getIDTokenFromBody function --- .idea/.gitignore | 10 ++++++++++ .idea/firebase-admin-go.iml | 9 +++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ snippets/auth.go | 2 ++ 6 files changed, 41 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/firebase-admin-go.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..7bc07ec2 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Environment-dependent path to Maven home directory +/mavenHomeManager.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/firebase-admin-go.iml b/.idea/firebase-admin-go.iml new file mode 100644 index 00000000..d6ebd480 --- /dev/null +++ b/.idea/firebase-admin-go.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..6f29fee2 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..9e56e1e0 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..35eb1ddf --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/snippets/auth.go b/snippets/auth.go index df003339..50d3e8d9 100644 --- a/snippets/auth.go +++ b/snippets/auth.go @@ -809,6 +809,7 @@ func sessionLogoutHandlerWithRevocation(client *auth.Client) http.HandlerFunc { } func getIDTokenFromBody(r *http.Request) (string, error) { + // [START get_id_token_from_body] b, err := ioutil.ReadAll(r.Body) if err != nil { return "", err @@ -818,6 +819,7 @@ func getIDTokenFromBody(r *http.Request) (string, error) { IDToken string `json:"idToken"` } err = json.Unmarshal(b, &parsedBody) + // [END get_id_token_from_body] return parsedBody.IDToken, err }