go-oauth2 / oauth2

OAuth 2.0 server library for the Go programming language.
https://pkg.go.dev/github.com/go-oauth2/oauth2/v4
MIT License
3.31k stars 563 forks source link

There is no method provided to clean up the specified clientid in the clientstore. #255

Open Christian-health opened 11 months ago

Christian-health commented 11 months ago

https://github.com/go-oauth2/oauth2/blob/master/store/client.go

There is no method provided to clean up the specified clientid in the clientstore. How can I clean it up? Continuously adding clientid to clientstore will cause a lot of memory usage.

没有提供清理ClientStore中指定clientid的方法。如何才能清理掉?不停的添加clientid到clientstore,将导致大量内内存的占用。一个过期的。无效的clientId仍然会被存放到ClientStore中无法清理掉。