JSONWebToken.swift icon indicating copy to clipboard operation
JSONWebToken.swift copied to clipboard

Type 'JWT' has no member 'encode'

Open dipenOpenxcell opened this issue 7 years ago • 3 comments

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.

dipenOpenxcell avatar Jun 26 '18 11:06 dipenOpenxcell

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

kylef avatar Jun 26 '18 11:06 kylef

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

dipenOpenxcell avatar Jun 26 '18 11:06 dipenOpenxcell

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?

kylef avatar Jun 26 '18 11:06 kylef