Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with coding strategy #81

Closed
gulivero1773 opened this issue Apr 9, 2021 · 1 comment
Closed

Bug with coding strategy #81

gulivero1773 opened this issue Apr 9, 2021 · 1 comment

Comments

@gulivero1773
Copy link

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
Copy link
Member

0xTim commented Apr 12, 2021

Closing as this is a duplicate of #80

@0xTim 0xTim closed this as completed Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants