We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a situation, where I need to send the audience as String instead of List<String>. How can I do it, can you please share some workaround?
String
List<String>
var claimSet = JwtClaim( issuer: issuer, subject: '', audience: [issuer], otherClaims: {'DATA': encodedPayload}, maxAge: Duration(days: kReleaseMode ? 1 : 7), ); claimSet.audience = issuer; // Giving error - 'audience' can't be used as a setter because it's final.
I tried to update the audience key but IDE itself giving an error.
audience
The text was updated successfully, but these errors were encountered:
Why not use array with one entry in that case?
Sorry, something went wrong.
If that is not possible I will consider adding an anAudience field that will override audience if present.
No branches or pull requests
I have a situation, where I need to send the audience as
String
instead ofList<String>
. How can I do it, can you please share some workaround?I tried to update the
audience
key but IDE itself giving an error.The text was updated successfully, but these errors were encountered: