diff options
author | 2018-05-20 15:29:14 -0700 | |
---|---|---|
committer | 2018-05-20 15:29:14 -0700 | |
commit | 7f2fd1fdd85a62b187ad901d4917e561e39e37b2 (patch) | |
tree | 635fd7622cda67a0b9a422e093edee0b2bbc7399 /http/context/context.go | |
parent | 0f3f5e442f81d37a03618d0df5ea8f0524a24029 (diff) | |
download | v2-7f2fd1fdd85a62b187ad901d4917e561e39e37b2.tar.gz v2-7f2fd1fdd85a62b187ad901d4917e561e39e37b2.tar.zst v2-7f2fd1fdd85a62b187ad901d4917e561e39e37b2.zip |
Add Pocket authorization flow in the user interface
Diffstat (limited to 'http/context/context.go')
-rw-r--r-- | http/context/context.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/http/context/context.go b/http/context/context.go index cf7cb09f..f0fed23f 100644 --- a/http/context/context.go +++ b/http/context/context.go @@ -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) |