cuappdev / resell-backend

An open-sourced backend service for Resell.
MIT License
3 stars 0 forks source link

Implement Storing Tokens and Notifications #68

Closed joycrwu closed 1 year ago

joycrwu commented 1 year ago

Overview

Implemented storing device tokens on the backend and sending notifications using the Expo API.

Changes Made

Test Coverage

joycrwu commented 1 year ago

i think we need to store device tokens in sessions so that when a user logs out/the session expires, we can get rid of that deviceToken and not send notifications to it anymore should the user be also logged in elsewhere with other sessions active; i store it here so that i can identify which device token to remove on the user when this session expires

snajima commented 1 year ago

let's get rid of list of deviceTokens in user, and add semicolons at the end of each line