ory / fosite-example

Apache License 2.0
79 stars 34 forks source link

fix: removes use of deprecated type `oauth2.NoContext` in favour of `context.Background()` #25

Closed matthewhartstonge closed 4 years ago

matthewhartstonge commented 4 years ago

IDE fired up a deprecation warning, figured may as well clean it up ¯_(ツ)_/¯

For reference:

// NoContext is the default context you should supply if not using
// your own context.Context (see https://golang.org/x/net/context).
//
// Deprecated: Use context.Background() or context.TODO() instead.
var NoContext = context.TODO()
coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 0.0% when pulling 1bfab752bfec28e6becabeb45f1513864c2c7b0c on matthewhartstonge:bugfix/oauth2-type-deprecation into ff10621c82dadedc58310a08e2e64a172ce2fdf9 on ory:master.

aeneasr commented 4 years ago

Awesome, thank you for your contribution!