Support YNAB personal-access-token
Define my YNAB personal access token as an environment variable. Prefix Monzo environment variables with "monzo_" to more easily differentiate between Monzo credentials and YNAB credentials.
This commit is contained in:
		
							parent
							
								
									938c1a4eb0
								
							
						
					
					
						commit
						4f63b99cee
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		|  | @ -5,6 +5,7 @@ | |||
| # definitions inside of the attribute set passed to pkgs.mkShell become | ||||
| # available here as well. | ||||
| source_up | ||||
| export client_id="$(pass show finance/monzo/client-id)" | ||||
| export client_secret="$(pass show finance/monzo/client-secret)" | ||||
| export monzo_client_id="$(pass show finance/monzo/client-id)" | ||||
| export monzo_client_secret="$(pass show finance/monzo/client-secret)" | ||||
| export ynab_personal_access_token="$(pass show finance/youneedabudget.com/personal-access-token)" | ||||
| eval "$(lorri direnv)" | ||||
|  |  | |||
|  | @ -24,8 +24,8 @@ import ( | |||
| //////////////////////////////////////////////////////////////////////////////// | ||||
| 
 | ||||
| var ( | ||||
| 	clientId     = os.Getenv("client_id") | ||||
| 	clientSecret = os.Getenv("client_secret") | ||||
| 	clientId     = os.Getenv("monzo_client_id") | ||||
| 	clientSecret = os.Getenv("monzo_client_secret") | ||||
| ) | ||||
| 
 | ||||
| const ( | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue