kylef / JSONWebToken.swift

Swift implementation of JSON Web Token (JWT).
http://jwt.io
BSD 2-Clause "Simplified" License
763 stars 226 forks source link

Type 'JWT' has no member 'encode' #109

Open dipenOpenxcell opened 6 years ago

dipenOpenxcell commented 6 years ago

I have installed JSONWebToken using pod when i am encode my dictionary then i get error " Type 'JWT' has no member 'encode'"

please help to solve this issue. Thanks in advance.

kylef commented 6 years ago

Are you passing all the arguments with the correct type? See https://github.com/kylef/JSONWebToken.swift/issues/97

dipenOpenxcell commented 6 years ago

Yes i have pass all arguments. please check attachment. screen shot 2018-06-26 at 5 04 41 pm

kylef commented 6 years ago

The compiler might be tripping up on something sooner and the error message could be hiding the underlying cause. What is the type of parameters? Are you perhaps wrapping a dictionary inside a dictionary?