mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Add Pocket authorization flow in the user interface
This commit is contained in:
parent
0f3f5e442f
commit
7f2fd1fdd8
18 changed files with 286 additions and 54 deletions
|
@ -78,6 +78,11 @@ func (c *Context) FlashErrorMessage() string {
|
|||
return c.getContextStringValue(middleware.FlashErrorMessageContextKey)
|
||||
}
|
||||
|
||||
// PocketRequestToken returns the Pocket Request Token if any.
|
||||
func (c *Context) PocketRequestToken() string {
|
||||
return c.getContextStringValue(middleware.PocketRequestTokenContextKey)
|
||||
}
|
||||
|
||||
func (c *Context) getContextStringValue(key *middleware.ContextKey) string {
|
||||
if v := c.request.Context().Value(key); v != nil {
|
||||
return v.(string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue