Comments (5)
@mottihoresh I think the jwt RFC states that it should be a numeric value
from jwtdecode.swift.
@hzalaz yea that would make the most sense, I am using php for my backend, when using the json_encode it convert everything to a string.
I'm just getting into iOS development so by no means I really know what I do :) but this seems to solve the "problem"
guard let timestamp:Double = claim(name) else {
if let timestamp:String = claim(name) {
return NSDate(timeIntervalSince1970: Double(timestamp)!)
}
return nil
}
from jwtdecode.swift.
I know but I am not too keen to do that since it should be a numeric value not a string
from jwtdecode.swift.
Gotcha are you aware of any workarounds?
from jwtdecode.swift.
Sorry, I am not too familiar with php
from jwtdecode.swift.
Related Issues (20)
- Version missing in JWT podscpec 2.4.0 on Github HOT 1
- Support for timestamp expiration date with milliseconds ( 13 digits) HOT 1
- Test target dependencies failed to install via SSH HOT 2
- Tag 9.9.9 breaks SwiftPM version support HOT 1
- JWTDecode fails to build with Swift 5.3 (Xcode 12) HOT 9
- Handling milliseconds value comes in String HOT 2
- M1 compatibility HOT 6
- Next JWTDecode.swift major release HOT 2
- Package resolution failed HOT 6
- Claim.integer returns nil when value is 0 or 1 HOT 1
- JWTDecode.swift Fails to build on XCode 15.0.1
- Privacy Manfiest HOT 4
- Missing leeway as present on the Android SDK
- Add privacy manifest HOT 2
- Missing Privacy manifest HOT 1
- TokenExpired boolean is gives true if device time is changed.
- Add PrivacyInfo.xcprivacy file
- Problem with error handling with iOS 10 HOT 3
- Swift 5 support HOT 3
- Swift Package Manger support? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jwtdecode.swift.