Skip to content

Commit 6337f5b

Browse files
committed
Adding comment for get_claim_string
1 parent 3b45124 commit 6337f5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/scitokens_internal.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ friend class scitokens::Validator;
126126
return m_claims[key];
127127
}
128128

129+
// Return a claim as a string
130+
// If the claim is not a string, it can throw
131+
// a std::bad_cast() exception.
129132
const std::string
130133
get_claim_string(const std::string &key) {
131134
return m_claims[key].as_string();

0 commit comments

Comments
 (0)