Merged in feat/sw-3610-basicProfile (pull request #3144)
Feat(SW-3610): basic profile endpoint on protected layouts * Basic profile in protected layouts * . Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -17,6 +17,11 @@ export const getProfile = cache(async function getMemoizedProfile() {
|
||||
return caller.user.get()
|
||||
})
|
||||
|
||||
export const getBasicProfile = cache(async function getMemoizedBasicProfile() {
|
||||
const caller = await serverClient()
|
||||
return caller.user.getBasic()
|
||||
})
|
||||
|
||||
export const getProfileSafely = cache(
|
||||
async function getMemoizedProfileSafely() {
|
||||
const caller = await serverClient()
|
||||
|
||||
Reference in New Issue
Block a user