We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beffb19 commit 26b5d60Copy full SHA for 26b5d60
.env.example
@@ -8,7 +8,7 @@ PORT=4000
8
JWT_KEY=
9
10
# The base REST endpoint that is used to talk to @cryb/portals
11
-PORTALS_API_URL=http://localhost:1337
+PORTALS_API_URL=http://localhost:5000
12
# This should the same secure key in @cryb/portals/.env under 'API_KEY'
13
PORTALS_API_KEY=api-portals-key
14
src/models/user/index.ts
@@ -167,7 +167,7 @@ export default class User {
167
168
signToken = () => new Promise<string>(async (resolve, reject) => {
169
try {
170
- const { id } = this, token = await signToken({ id })
+ const { id } = this, token = await signToken({ id, type: 'user' })
171
172
resolve(token)
173
} catch(error) {
0 commit comments