1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7456],{28453:(e,t,n)=>{n.d(t,{R:()=>s,x:()=>i});var o=n(96540);const r={},a=o.createContext(r);function s(e){const t=o.useContext(a);return o.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),o.createElement(a.Provider,{value:t},e.children)}},56684:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>u,frontMatter:()=>s,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"reference/backend/data/storage/authorization_token_storage","title":"data.storage.authorization_token_storage","description":"AuthorizationTokenStorage Objects","source":"@site/docs/reference/backend/data/storage/authorization_token_storage.md","sourceDirName":"reference/backend/data/storage","slug":"/reference/backend/data/storage/authorization_token_storage","permalink":"/docs/reference/backend/data/storage/authorization_token_storage","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"authorization_token_storage","title":"data.storage.authorization_token_storage"},"sidebar":"backendSidebar","previous":{"title":"storage","permalink":"/docs/reference/backend/data/storage/"},"next":{"title":"connector_storage","permalink":"/docs/reference/backend/data/storage/connector_storage"}}');var r=n(74848),a=n(28453);const s={sidebar_label:"authorization_token_storage",title:"data.storage.authorization_token_storage"},i=void 0,c={},d=[{value:"AuthorizationTokenStorage Objects",id:"authorizationtokenstorage-objects",level:2},{value:"filter_by_user",id:"filter_by_user",level:4}];function l(e){const t={code:"code",h2:"h2",h4:"h4",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,a.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h2,{id:"authorizationtokenstorage-objects",children:"AuthorizationTokenStorage Objects"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"class AuthorizationTokenStorage(Storage[AuthorizationToken,\n AuthorizationTokenID], abc.ABC)\n"})}),"\n",(0,r.jsx)(t.p,{children:"Storage for authorization tokens."}),"\n",(0,r.jsx)(t.h4,{id:"filter_by_user",children:"filter_by_user"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"@abc.abstractmethod\ndef filter_by_user(user_id: UserID) -> typing.List[AuthorizationToken]\n"})}),"\n",(0,r.jsx)(t.p,{children:"Returns all tokens belonging to the specified user."}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"Arguments"}),":"]}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.code,{children:"user_id"})," - The user ID."]}),"\n"]}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"Returns"}),":"]}),"\n",(0,r.jsx)(t.p,{children:"The matching tokens list."})]})}function u(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.