Skip to content

Commit 874eb13

Browse files
authored
fix: Fix typo in audience (#70)
1 parent 0bf4424 commit 874eb13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/jwt.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,15 @@ class JWT {
215215
final payload =
216216
(jsonBase64.decode(base64Padded(parts[1])) as Map<String, dynamic>);
217217

218-
final audiance = _parseAud(payload['aud']);
218+
final audience = _parseAud(payload['aud']);
219219
final issuer = payload['iss']?.toString();
220220
final subject = payload['sub']?.toString();
221221
final jwtId = payload['jti']?.toString();
222222

223223
return JWT(
224224
payload,
225225
header: header is! Map<String, dynamic> ? null : header,
226-
audience: audiance,
226+
audience: audience,
227227
issuer: issuer,
228228
subject: subject,
229229
jwtId: jwtId,

0 commit comments

Comments
 (0)