Reference documentation and code samples for the googleauth class Google::Auth::TokenStore.
Interface definition for token stores. It is not required that
implementations inherit from this class. It is provided for documentation
purposes to illustrate the API contract.
Inherits
Object
Methods
.default
defself.default()
Returns the value of attribute default.
.default=
defself.default=(value)
Sets the attribute default
#delete
defdelete(_id)
Remove the token data from storage for the given ID.
Parameter
id(String) — ID of the token data to delete
Raises
(NoMethodError)
#load
defload(_id)->String
Load the token data from storage for the given ID.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# googleauth - Class Google::Auth::TokenStore (v1.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.15.0 (latest)](/ruby/docs/reference/googleauth/latest/Google-Auth-TokenStore)\n- [1.14.0](/ruby/docs/reference/googleauth/1.14.0/Google-Auth-TokenStore)\n- [1.13.1](/ruby/docs/reference/googleauth/1.13.1/Google-Auth-TokenStore)\n- [1.12.2](/ruby/docs/reference/googleauth/1.12.2/Google-Auth-TokenStore) \nReference documentation and code samples for the googleauth class Google::Auth::TokenStore.\n\nInterface definition for token stores. It is not required that\nimplementations inherit from this class. It is provided for documentation\npurposes to illustrate the API contract. \n\nInherits\n--------\n\n- Object\n\nMethods\n-------\n\n### .default\n\n def self.default()\n\nReturns the value of attribute default.\n\n### .default=\n\n def self.default=(value)\n\nSets the attribute default\n\n### #delete\n\n def delete(_id)\n\nRemove the token data from storage for the given ID. \n**Parameter**\n\n- **id** (String) --- ID of the token data to delete \n**Raises**\n\n- (NoMethodError)\n\n### #load\n\n def load(_id) -\u003e String\n\nLoad the token data from storage for the given ID. \n**Parameter**\n\n- **id** (String) --- ID of token data to load. \n**Returns**\n\n- (String) --- The loaded token data. \n**Raises**\n\n- (NoMethodError)\n\n### #store\n\n def store(_id, _token)\n\nPut the token data into storage for the given ID. \n**Parameters**\n\n- **id** (String) --- ID of token data to store.\n- **token** (String) --- The token data to store. \n**Raises**\n\n- (NoMethodError)"]]