mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +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
|
@ -56,6 +56,11 @@ func (s *Session) SetLanguage(language string) {
|
|||
s.store.UpdateSessionField(s.ctx.SessionID(), "language", language)
|
||||
}
|
||||
|
||||
// SetPocketRequestToken updates Pocket Request Token.
|
||||
func (s *Session) SetPocketRequestToken(requestToken string) {
|
||||
s.store.UpdateSessionField(s.ctx.SessionID(), "pocket_request_token", requestToken)
|
||||
}
|
||||
|
||||
// New returns a new session handler.
|
||||
func New(store *storage.Storage, ctx *context.Context) *Session {
|
||||
return &Session{store, ctx}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue