vapor-community / Imperial

Federated Authentication with OAuth providers
MIT License
153 stars 48 forks source link

Bug with coding strategy #81

Closed gulivero1773 closed 3 years ago

gulivero1773 commented 3 years ago

When I use ` let encoder = JSONEncoder() encoder.keyEncodingStrategy = .convertToSnakeCase encoder.dateEncodingStrategy = .iso8601 ContentConfiguration.global.use(encoder: encoder, for: .json)

let decoder = JSONDecoder() decoder.keyDecodingStrategy = .convertFromSnakeCase decoder.dateDecodingStrategy = .iso8601 ContentConfiguration.global.use(decoder: decoder, for: .json) `

in configure.swift I haw error - image

but when I don't use coding strategy I got access token from Google. And it work, for testing I use project in book "Server-Side Swift with Vapor" (edition 3) Chapter 22: Google Authentication.

0xTim commented 3 years ago

Closing as this is a duplicate of #80