dwyl / dwyl/app

What should be the key_id value?

Open
#250 9 comments 1 reaction 1 assignee Claimed by @SimonLab View on GitHub
investigate question T1h technical
Dominant language
Dart
Stars
152
Forks
22
PR merge metrics
No merged PRs in 30d

Description

The Google tokens are now encrypted and saved in Postgres using Fields.Encrypted:
![image](https://user-images.githubusercontent.com/6057298/69799275-df8f5500-11ca-11ea-8d48-4365d3532d5b.png)

https://github.com/dwyl/app-mvp-phoenix/blob/9e1bf7dd5ac0b073f892ea9b93346f991a817407/lib/app/ctx/session.ex#L5-L12

However we do not save the `key_id` value yet.

I don't fully understand yet how the key value is selected. It seems to be done automatically by Fields, so I need to read the code of Fields to see how it's done and then to see if we need to select the key in the app itself first instead of letting Fields select it automatically.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.